From e515b051720482023e3f79e418d8b381e29273f3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 10 Mar 2003 23:25:13 +0000 Subject: * elf32-ppc.c (ppc_elf_relocate_section): Subtract tls seg vma from zero index dynamic tls relocs generated for the GOT. Tidy code. Set "relocation" to 1 on DTPMOD32 relocs. Optimize HA adjustment. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. * ld-powerpc/tlsso.r: Adjust for corrected zero symbol index relocs. * ld-powerpc/tlsso32.r: Likewise. --- ld/testsuite/ld-powerpc/tlsso.r | 4 ++-- ld/testsuite/ld-powerpc/tlsso32.r | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ld/testsuite/ld-powerpc') diff --git a/ld/testsuite/ld-powerpc/tlsso.r b/ld/testsuite/ld-powerpc/tlsso.r index 2d89e0b..7b36dea 100644 --- a/ld/testsuite/ld-powerpc/tlsso.r +++ b/ld/testsuite/ld-powerpc/tlsso.r @@ -59,8 +59,8 @@ Relocation section '\.rela\.dyn' at offset .* contains 16 entries: 0+7ca +0+900000046 R_PPC64_TPREL16_LO +0+107f8 \.tdata \+ 30 0+10988 +0+44 R_PPC64_DTPMOD64 +0+ 0+10998 +0+44 R_PPC64_DTPMOD64 +0+ -0+109a0 +0+4e R_PPC64_DTPREL64 +0+107f8 -0+109a8 +0+4e R_PPC64_DTPREL64 +0+10810 +0+109a0 +0+4e R_PPC64_DTPREL64 +0+ +0+109a8 +0+4e R_PPC64_DTPREL64 +0+18 0+109b0 +0+1300000044 R_PPC64_DTPMOD64 +0+ gd \+ 0 0+109b8 +0+130000004e R_PPC64_DTPREL64 +0+ gd \+ 0 0+109c0 +0+1b0000004e R_PPC64_DTPREL64 +0+50 ld2 \+ 0 diff --git a/ld/testsuite/ld-powerpc/tlsso32.r b/ld/testsuite/ld-powerpc/tlsso32.r index 7125875..6009467 100644 --- a/ld/testsuite/ld-powerpc/tlsso32.r +++ b/ld/testsuite/ld-powerpc/tlsso32.r @@ -62,7 +62,7 @@ Relocation section '\.rela\.dyn' at offset 0x454 contains 18 entries: 0+5a6 +0+846 R_PPC_TPREL16_LO +0+105a8 +\.tdata \+ 105c0 0+10674 +0+44 R_PPC_DTPMOD32 +0+ 0+1067c +0+44 R_PPC_DTPMOD32 +0+ -0+10680 +0+4e R_PPC_DTPREL32 +0+105a8 +0+10680 +0+4e R_PPC_DTPREL32 +0+ 0+10684 +0+1244 R_PPC_DTPMOD32 +0+ +gd \+ 0 0+10688 +0+124e R_PPC_DTPREL32 +0+ +gd \+ 0 0+1068c +0+2144 R_PPC_DTPMOD32 +0+1c +gd0 \+ 0 -- cgit v1.1