From 758d1c9ff67def05e29859d4698eadc29ebb24de Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 6 Aug 2004 16:12:11 +0000 Subject: Joakim Tjernlund writes: PPC32, SPARC32/64 and S390 includes the PLT in its RELA size. This caused ldso to always do unlazy relocation of the JMPRELs. This patch fixes it. --- ldso/ldso/sparc/dl-sysdep.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ldso/ldso/sparc') diff --git a/ldso/ldso/sparc/dl-sysdep.h b/ldso/ldso/sparc/dl-sysdep.h index ddf74e21e..448bef055 100644 --- a/ldso/ldso/sparc/dl-sysdep.h +++ b/ldso/ldso/sparc/dl-sysdep.h @@ -107,3 +107,6 @@ sparc_mod(unsigned long m, unsigned long p) #define elf_machine_type_class(type) \ ((((type) == R_SPARC_JMP_SLOT) * ELF_RTYPE_CLASS_PLT) \ | (((type) == R_SPARC_COPY) * ELF_RTYPE_CLASS_COPY)) + +/* The SPARC overlaps DT_RELA and DT_PLTREL. */ +#define ELF_MACHINE_PLTREL_OVERLAP 1 -- cgit v1.2.3