summaryrefslogtreecommitdiff
path: root/ld/emulparams/elf_x86_64.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ld/emulparams/elf_x86_64.sh')
-rw-r--r--ld/emulparams/elf_x86_64.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/ld/emulparams/elf_x86_64.sh b/ld/emulparams/elf_x86_64.sh
index 1e83a74cbe4..0308cec0fef 100644
--- a/ld/emulparams/elf_x86_64.sh
+++ b/ld/emulparams/elf_x86_64.sh
@@ -15,9 +15,11 @@ NO_SMALL_DATA=yes
LARGE_SECTIONS=yes
LARGE_BSS_AFTER_BSS=
SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 24 ? 24 : 0"
+# Place .plt next to text sections so that .plt can refer .got.plt
+# with larger (> 2GB) text sections.
+PLT_AFTER_TEXT=
IREL_IN_PLT=
-# Reuse TINY_READONLY_SECTION which is placed right after .plt section.
-TINY_READONLY_SECTION=".plt.bnd ${RELOCATING-0} : { *(.plt.bnd) }"
+EXTRA_PLT_SECTION=".plt.bnd ${RELOCATING-0} : { *(.plt.bnd) }"
if [ "x${host}" = "x${target}" ]; then
case " $EMULATION_LIBPATH " in