forked from OSchip/llvm-project
Update GET_LINK_MAP_BY_DLOPEN_HANDLE() for NetBSD x86
NetBSD 8.99.26 changed the layout of internal structure returned by dlopen(3), switch to it. Set new values for amd64 and i386 based on the results of &((struct Struct_Obj_Entry*)0)->linkmap. llvm-svn: 348329
This commit is contained in:
parent
d499725b8f
commit
b9601a385a
|
@ -25,10 +25,10 @@
|
|||
|
||||
#if defined(__x86_64__)
|
||||
#define GET_LINK_MAP_BY_DLOPEN_HANDLE(handle) \
|
||||
_GET_LINK_MAP_BY_DLOPEN_HANDLE(handle, 312)
|
||||
_GET_LINK_MAP_BY_DLOPEN_HANDLE(handle, 264)
|
||||
#elif defined(__i386__)
|
||||
#define GET_LINK_MAP_BY_DLOPEN_HANDLE(handle) \
|
||||
_GET_LINK_MAP_BY_DLOPEN_HANDLE(handle, 164)
|
||||
_GET_LINK_MAP_BY_DLOPEN_HANDLE(handle, 136)
|
||||
#endif
|
||||
|
||||
namespace __sanitizer {
|
||||
|
|
Loading…
Reference in New Issue