diff options
| author | Dimitry Andric <dimitry@andric.com> | 2020-02-10 23:43:12 +0100 |
|---|---|---|
| committer | Dimitry Andric <dimitry@andric.com> | 2020-02-10 23:43:20 +0100 |
| commit | 52f2df1ecdd79cc550b694ab280f3b0396d7cf9a (patch) | |
| tree | d8d7f2e7e14339655fbcce11087df18afd01521b /lldb/test/API/python_api/process | |
| parent | bf65f19bce88fd9f1a74154d92afe37193ecd7a5 (diff) | |
[Sanitizers] Get link map on FreeBSD and NetBSD via documented API
Summary:
Instead of hand-crafting an offset into the structure returned by
dlopen(3) to get at the link map, use the documented API. This is
described in dlinfo(3): by calling it with `RTLD_DI_LINKMAP`, the
dynamic linker ensures the right address is returned.
This is a recommit of 92e267a94dc4272511be674062f8a3e8897b7083, with
dlinfo(3) expliclity being referenced only for FreeBSD, non-Android
Linux, NetBSD and Solaris. Other OSes will have to add their own
implementation.
Reviewers: devnexen, emaste, MaskRay, krytarowski
Reviewed By: krytarowski
Subscribers: krytarowski, vitalybuka, #sanitizers, llvm-commits
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D73990
Diffstat (limited to 'lldb/test/API/python_api/process')
0 files changed, 0 insertions, 0 deletions
