From: H.J. Lu Date: Wed, 10 May 2017 17:51:35 +0000 (-0700) Subject: i386: Set CHECK_RELOCS_AFTER_OPEN_INPUT to yes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d69120bfff3e532242083acd636dc68f23ea831;p=binutils-gdb.git i386: Set CHECK_RELOCS_AFTER_OPEN_INPUT to yes 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 2dfb06eee04..eb1fa7d6173 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2017-05-10 H.J. Lu + + * 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 PR ld/21481 diff --git a/ld/emulparams/i386lynx.sh b/ld/emulparams/i386lynx.sh index 93afb3d7f37..12bc7daa6a3 100644 --- a/ld/emulparams/i386lynx.sh +++ b/ld/emulparams/i386lynx.sh @@ -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 diff --git a/ld/emulparams/i386moss.sh b/ld/emulparams/i386moss.sh index 095d85ab921..bffef867a74 100644 --- a/ld/emulparams/i386moss.sh +++ b/ld/emulparams/i386moss.sh @@ -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)" diff --git a/ld/emulparams/i386nw.sh b/ld/emulparams/i386nw.sh index e1897bef957..e6397f6879c 100644 --- a/ld/emulparams/i386nw.sh +++ b/ld/emulparams/i386nw.sh @@ -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