Create the second PLT for BND relocations
[binutils-gdb.git] / ld / emulparams / elf_x86_64.sh
index 4842257c2926e3a7f0c3af6987ba50d2890643c2..d8cb6bfbf35806c4f61f36452c3c221d565f8283 100644 (file)
@@ -16,6 +16,8 @@ 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.bnd      ${RELOCATING-0} : { *(.plt.bnd) }"
 
 if [ "x${host}" = "x${target}" ]; then
   case " $EMULATION_LIBPATH " in