summaryrefslogtreecommitdiff
path: root/ldso/ldso/sparc
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/sparc
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/sparc')
-rw-r--r--ldso/ldso/sparc/dl-sysdep.h3
1 files changed, 3 insertions, 0 deletions
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