Skip to content

Commit

Permalink
elfhacks: d_un.d_ptr is relative on riscv glibc
Browse files Browse the repository at this point in the history
  • Loading branch information
ksco authored and flightlessmango committed Sep 4, 2024
1 parent d102604 commit d0894ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elfhacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d0894ff

Please sign in to comment.