diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-01-10 13:57:39 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-01-10 13:57:39 -0800 |
commit | 59a1e29d9e1fc7ed31e66d51899ada46e5dd9a56 (patch) | |
tree | ece3044377239bd1e38f2fdab75026192a4a3731 /ld/emulparams | |
parent | fff53daefb7838b5718422c87946330e4a8288ce (diff) | |
download | gdb-59a1e29d9e1fc7ed31e66d51899ada46e5dd9a56.zip gdb-59a1e29d9e1fc7ed31e66d51899ada46e5dd9a56.tar.gz gdb-59a1e29d9e1fc7ed31e66d51899ada46e5dd9a56.tar.bz2 |
X32: Place .plt.got section after .plt section
This patch places .plt.got section after .plt section for x32.
* emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
* testsuite/ld-x86-64/pr20830.d: Renamed to ...
* testsuite/ld-x86-64/pr20830a.d: This. Updated.
* testsuite/ld-x86-64/pr20830b.d: New file.
* testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
Run pr20830b.
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/elf32_x86_64.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/emulparams/elf32_x86_64.sh b/ld/emulparams/elf32_x86_64.sh index 9050730..9b85239 100644 --- a/ld/emulparams/elf32_x86_64.sh +++ b/ld/emulparams/elf32_x86_64.sh @@ -21,6 +21,10 @@ LARGE_SECTIONS=yes LARGE_BSS_AFTER_BSS= SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 24 ? 24 : 0" IREL_IN_PLT= +# Reuse TINY_READONLY_SECTION which is placed right after .plt section. +TINY_READONLY_SECTION=" +.plt.got ${RELOCATING-0} : { *(.plt.got) } +" if [ "x${host}" = "x${target}" ]; then case " $EMULATION_LIBPATH " in |