multiple GOT sections for powerpc64

Alan Modra amodra@bigpond.net.au
Mon Jul 28 02:49:00 GMT 2003


Fixes a silly thinko in my 2003-07-10 change.

	* emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r.

Index: ld/emulparams/elf64ppc.sh
===================================================================
RCS file: /cvs/src/src/ld/emulparams/elf64ppc.sh,v
retrieving revision 1.14
diff -u -p -r1.14 elf64ppc.sh
--- ld/emulparams/elf64ppc.sh	10 Jul 2003 00:38:18 -0000	1.14
+++ ld/emulparams/elf64ppc.sh	28 Jul 2003 02:40:35 -0000
@@ -19,7 +19,8 @@ OTHER_BSS_SYMBOLS="
 OTHER_PLT_RELOC_SECTIONS="
   .rela.tocbss	${RELOCATING-0} : { *(.rela.tocbss) }"
 GOT="
-  .got		${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.got .toc) }"
+  .got		${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.got${RELOCATING+ .toc}) }
+  ${RELOCATING-.toc		0 : { *(.toc) }}"
 OTHER_GOT_RELOC_SECTIONS="
   .rela.toc	${RELOCATING-0} : { *(.rela.toc) }"
 OTHER_READWRITE_SECTIONS="

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list