diff options
author | Alan Modra <amodra@gmail.com> | 2003-07-28 03:33:48 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-07-28 03:33:48 +0000 |
commit | f37f3db78f7bb2986bf17558446c05d9e81d1795 (patch) | |
tree | ae3b3d172157f3103f1d734e78df375010a76d27 /ld | |
parent | 9175bfc0f5e45004a3be439b00f479c11f3074ee (diff) | |
download | gdb-f37f3db78f7bb2986bf17558446c05d9e81d1795.zip gdb-f37f3db78f7bb2986bf17558446c05d9e81d1795.tar.gz gdb-f37f3db78f7bb2986bf17558446c05d9e81d1795.tar.bz2 |
* emulparams/elf64ppc.sh (GOT): Fix for shell brace matching.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 2 | ||||
-rw-r--r-- | ld/emulparams/elf64ppc.sh | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 2d007ca..c77b087 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,7 @@ 2003-07-28 Alan Modra <amodra@bigpond.net.au> + * emulparams/elf64ppc.sh (GOT): Fix for shell brace matching. + * emulparams/elf64ppc.sh (GOT): Don't merge .toc into .got for ld -r. 2003-07-27 Alan Modra <amodra@bigpond.net.au> diff --git a/ld/emulparams/elf64ppc.sh b/ld/emulparams/elf64ppc.sh index fe58c74..c190b18 100644 --- a/ld/emulparams/elf64ppc.sh +++ b/ld/emulparams/elf64ppc.sh @@ -18,9 +18,15 @@ OTHER_BSS_SYMBOLS=" .tocbss ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.tocbss)}" OTHER_PLT_RELOC_SECTIONS=" .rela.tocbss ${RELOCATING-0} : { *(.rela.tocbss) }" -GOT=" - .got ${RELOCATING-0}${RELOCATING+ALIGN(8)} : { *(.got${RELOCATING+ .toc}) } - ${RELOCATING-.toc 0 : { *(.toc) }}" + +if test x${RELOCATING+set} = xset; then + GOT=" + .got ALIGN(8) : { *(.got .toc) }" +else + GOT=" + .got 0 : { *(.got) } + .toc 0 : { *(.toc) }" +fi OTHER_GOT_RELOC_SECTIONS=" .rela.toc ${RELOCATING-0} : { *(.rela.toc) }" OTHER_READWRITE_SECTIONS=" |