diff --git a/src/elfhacks.cpp b/src/elfhacks.cpp index 230b21676c..67da329927 100644 --- a/src/elfhacks.cpp +++ b/src/elfhacks.cpp @@ -29,7 +29,7 @@ * \{ */ -#if defined(__GLIBC__) && !defined(__riscv) +#if defined(__GLIBC__) && !(defined(__riscv) || defined(__mips__)) # define ABS_ADDR(obj, ptr) (ptr) #else # define ABS_ADDR(obj, ptr) ((obj->addr) + (ptr))