i386: Set CHECK_RELOCS_AFTER_OPEN_INPUT to yes
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 10 May 2017 17:51:35 +0000 (10:51 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 10 May 2017 17:51:35 +0000 (10:51 -0700)
All linker targets based on elf32-i386 should check relocations after
opening all inputs since this is how elf32-i386 works.

* emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Set
to yes.
* emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
Likewise.
* emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Likewise.

ld/ChangeLog
ld/emulparams/i386lynx.sh
ld/emulparams/i386moss.sh
ld/emulparams/i386nw.sh

index 2dfb06eee044b1a442244fb618da3aeb6ca8d518..eb1fa7d6173e5793b2f7ad0a6cf0651a4635e6a5 100644 (file)
@@ -1,3 +1,11 @@
+2017-05-10  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Set
+       to yes.
+       * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
+       Likewise.
+       * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Likewise.
+
 2017-05-10  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/21481
index 93afb3d7f37b50f629274550b48883825fc7160d..12bc7daa6a35a5a1ef31ac33d3ae5280be016426 100644 (file)
@@ -1,5 +1,6 @@
 SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-i386"
+CHECK_RELOCS_AFTER_OPEN_INPUT=yes
 NO_RELA_RELOCS=yes
 ENTRY=_main
 TEXT_BASE=0x0
index 095d85ab92151f9c5a2fa81ad806e0b537c55c4a..bffef867a744d98c5e9eac2a6df0147f09a0f780 100644 (file)
@@ -1,5 +1,6 @@
 SCRIPT_NAME=elf
 OUTPUT_FORMAT="elf32-i386"
+CHECK_RELOCS_AFTER_OPEN_INPUT=yes
 NO_RELA_RELOCS=yes
 TEXT_START_ADDR=0x00002000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
index e1897bef95778ca7a83a64971b56ad4375ef598a..e6397f6879cfb48571a84f64adc716be2ad01e86 100644 (file)
@@ -1,5 +1,6 @@
 SCRIPT_NAME=nw
 OUTPUT_FORMAT="elf32-i386"
+CHECK_RELOCS_AFTER_OPEN_INPUT=yes
 TEXT_START_ADDR=0x08000000
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=i386