aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/hppa/dl-runtime.c
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2020-05-27 12:54:21 -0700
committerVineet Gupta <vgupta@synopsys.com>2020-06-05 13:45:46 -0700
commit8dbb7a08ec52057819db4ee234f9429ab99eb4ae (patch)
tree5bf2d690342fc287e1b501de367fa1849505a52c /sysdeps/hppa/dl-runtime.c
parenta23bd00f9d810c28d9e83ce1d7cf53968375937d (diff)
downloadglibc-8dbb7a08ec52057819db4ee234f9429ab99eb4ae.zip
glibc-8dbb7a08ec52057819db4ee234f9429ab99eb4ae.tar.gz
glibc-8dbb7a08ec52057819db4ee234f9429ab99eb4ae.tar.bz2
dl-runtime: reloc_{offset,index} now functions arch overide'able
The existing macros are fragile and expect local variables with a certain name. Fix this by defining them as functions with default implementation in a new header dl-runtime.h which arches can override if need be. This came up during ARC port review, hence the need for argument pltgot in reloc_index() which is not needed by existing ports. This patch potentially only affects hppa/x86 ports, build tested for both those configs and a few more. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/hppa/dl-runtime.c')
-rw-r--r--sysdeps/hppa/dl-runtime.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sysdeps/hppa/dl-runtime.c b/sysdeps/hppa/dl-runtime.c
index 885a3f1..2d061b1 100644
--- a/sysdeps/hppa/dl-runtime.c
+++ b/sysdeps/hppa/dl-runtime.c
@@ -17,10 +17,6 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
-/* Clear PA_GP_RELOC bit in relocation offset. */
-#define reloc_offset (reloc_arg & ~PA_GP_RELOC)
-#define reloc_index (reloc_arg & ~PA_GP_RELOC) / sizeof (PLTREL)
-
#include <elf/dl-runtime.c>
/* The caller has encountered a partially relocated function descriptor.