summaryrefslogtreecommitdiff
path: root/ldso/ldso/powerpc/dl-sysdep.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-08-06 16:12:11 +0000
committerEric Andersen <andersen@codepoet.org>2004-08-06 16:12:11 +0000
commit758d1c9ff67def05e29859d4698eadc29ebb24de (patch)
tree5eec1b153d18010ab83cd7c945182fa3747de196 /ldso/ldso/powerpc/dl-sysdep.h
parent4efa075cf3b7d772bcb1b82d175dd6ddb0cd29c5 (diff)
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.
Diffstat (limited to 'ldso/ldso/powerpc/dl-sysdep.h')
-rw-r--r--ldso/ldso/powerpc/dl-sysdep.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ldso/ldso/powerpc/dl-sysdep.h b/ldso/ldso/powerpc/dl-sysdep.h
index 41d37e35c..b614318bb 100644
--- a/ldso/ldso/powerpc/dl-sysdep.h
+++ b/ldso/ldso/powerpc/dl-sysdep.h
@@ -87,3 +87,7 @@ void _dl_init_got(unsigned long *lpnt,struct elf_resolve *tpnt);
|| (type) == R_PPC_REL24 \
|| (type) == R_PPC_ADDR24) * ELF_RTYPE_CLASS_PLT) \
| (((type) == R_PPC_COPY) * ELF_RTYPE_CLASS_COPY))
+
+/* The SVR4 ABI specifies that the JMPREL relocs must be inside the
+ DT_RELA table. */
+#define ELF_MACHINE_PLTREL_OVERLAP 1