2021-09-10 15:52:17 +00:00
|
|
|
#define SHARED 1
|
|
|
|
|
|
|
|
#include <ldsodefs.h>
|
|
|
|
|
|
|
|
#define GLRO_offsetof(name) offsetof (struct rtld_global_ro, _##name)
|
2023-07-14 14:49:11 +00:00
|
|
|
#define GL_offsetof(name) offsetof (struct rtld_global, _##name)
|
2021-09-10 15:52:17 +00:00
|
|
|
|
|
|
|
-- Offsets of _rtld_global_ro in libc.so
|
|
|
|
|
|
|
|
GLRO_DL_HWCAP_OFFSET GLRO_offsetof (dl_hwcap)
|
|
|
|
GLRO_DL_HWCAP2_OFFSET GLRO_offsetof (dl_hwcap2)
|
2023-07-14 14:49:11 +00:00
|
|
|
|
|
|
|
-- Offsets of _rtld_global in libc.so
|
|
|
|
|
|
|
|
GL_DL_AARCH64_GCS_OFFSET GL_offsetof (dl_aarch64_gcs)
|