elfhacks: d_un.d_ptr is relative on riscv glibc

This commit is contained in:
Yang Liu 2024-09-05 00:27:05 +08:00 committed by flightlessmango
parent d102604291
commit d0894fff38

View File

@ -29,7 +29,7 @@
* \{
*/
#ifdef __GLIBC__
#if defined(__GLIBC__) && !defined(__riscv)
# define ABS_ADDR(obj, ptr) (ptr)
#else
# define ABS_ADDR(obj, ptr) ((obj->addr) + (ptr))