From e87deb82ccfa7e978dbbeaa28a503e5474520f0c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 18 Nov 2005 04:26:29 +0000 Subject: [PATCH] * emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme. (.got, .toc1, .opd): Likewise. --- ld/ChangeLog | 5 +++++ ld/emulparams/elf64ppc.sh | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 685bbf3..8a31f7c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,10 @@ 2005-11-18 Alan Modra + * emulparams/elf64ppc.sh (.tocbss): Use new section alignment scheme. + (.got, .toc1, .opd): Likewise. + +2005-11-18 Alan Modra + * ldlang.c (lang_size_sections_1): Revert 2005-11-16 functional changes to section alignment. * ldmisc.c (vfinfo): Handle %ld and %lu. diff --git a/ld/emulparams/elf64ppc.sh b/ld/emulparams/elf64ppc.sh index c190b18..8285723 100644 --- a/ld/emulparams/elf64ppc.sh +++ b/ld/emulparams/elf64ppc.sh @@ -15,13 +15,13 @@ NOP=0x60000000 OTHER_TEXT_SECTIONS="*(.sfpr .glink)" BSS_PLT= OTHER_BSS_SYMBOLS=" - .tocbss ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.tocbss)}" + .tocbss ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.tocbss)}" OTHER_PLT_RELOC_SECTIONS=" .rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }" if test x${RELOCATING+set} = xset; then GOT=" - .got ALIGN(8) : { *(.got .toc) }" + .got : ALIGN(8) { *(.got .toc) }" else GOT=" .got 0 : { *(.got) } @@ -30,8 +30,8 @@ fi OTHER_GOT_RELOC_SECTIONS=" .rela.toc ${RELOCATING-0} : { *(.rela.toc) }" OTHER_READWRITE_SECTIONS=" - .toc1 ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.toc1) } - .opd ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { KEEP (*(.opd)) }" + .toc1 ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { *(.toc1) } + .opd ${RELOCATING-0} :${RELOCATING+ ALIGN(8)} { KEEP (*(.opd)) }" # Treat a host that matches the target with the possible exception of "64" # in the name as if it were native. -- 2.7.4