* 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.
This commit is contained in:
Alan Modra
2003-03-10 23:25:13 +00:00
parent 8c87bc2296
commit e515b05172
6 changed files with 45 additions and 16 deletions

View File

@@ -1,3 +1,8 @@
2003-03-11 Alan Modra <amodra@bigpond.net.au>
* ld-powerpc/tlsso.r: Adjust for corrected zero symbol index relocs.
* ld-powerpc/tlsso32.r: Likewise.
2003-02-18 Alan Modra <amodra@bigpond.net.au>
* ld-powerpc/tlsexe.d: Update for changed handling of invalid LD

View File

@@ -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

View File

@@ -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