summaryrefslogtreecommitdiffstats
path: root/ld/emulparams
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-07-10 00:38:19 +0000
committerAlan Modra <amodra@gmail.com>2003-07-10 00:38:19 +0000
commit68f8ff14d1fb0bd1254ca950188a8aadc8104de4 (patch)
treef722d16b601da9b59743731ba88d35e527f12cb3 /ld/emulparams
parente717da7ead54704139ab3c160e95ed3db479d871 (diff)
downloadppe42-binutils-68f8ff14d1fb0bd1254ca950188a8aadc8104de4.tar.gz
ppe42-binutils-68f8ff14d1fb0bd1254ca950188a8aadc8104de4.zip
* emulparams/elf64ppc.sh (OTHER_GOT_SECTIONS): Don't define.
(GOT): Define. * emultempl/ppc64elf.em (stub_added): New static var. (ppc_create_output_section_statements): Call ppc64_elf_init_stub_bfd. (ppc_add_stub_section): Set stub_added. (gld${EMULATION_NAME}_finish): Look for .got rather than .toc. Adjust ppc64_elf_size_stubs call and test for stubs. * scripttempl/elf.sc (GOT): Define and use.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/elf64ppc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/emulparams/elf64ppc.sh b/ld/emulparams/elf64ppc.sh
index 5f812f6c65..e1d9e1d32f 100644
--- a/ld/emulparams/elf64ppc.sh
+++ b/ld/emulparams/elf64ppc.sh
@@ -18,8 +18,8 @@ OTHER_BSS_SYMBOLS="
.tocbss ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.tocbss)}"
OTHER_PLT_RELOC_SECTIONS="
.rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }"
-OTHER_GOT_SECTIONS="
- .toc ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc) }"
+GOT="
+ .got ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.got .toc) }"
OTHER_GOT_RELOC_SECTIONS="
.rela.toc ${RELOCATING-0} : { *(.rela.toc) }"
OTHER_READWRITE_SECTIONS="
OpenPOWER on IntegriCloud