Use elf-x86.em for i386-moss and i386-beos

Message ID 20190408183039.12332-1-hjl.tools@gmail.com
State New
Headers show
Series
  • Use elf-x86.em for i386-moss and i386-beos
Related show

Commit Message

H.J. Lu April 8, 2019, 6:30 p.m.
* emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
	* emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
---
 ld/ChangeLog                 | 5 +++++
 ld/emulparams/elf_i386_be.sh | 1 +
 ld/emulparams/i386moss.sh    | 1 +
 3 files changed, 7 insertions(+)

-- 
2.20.1

Patch

diff --git a/ld/ChangeLog b/ld/ChangeLog
index b1e7b0420d..0e583a443a 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@ 
+2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
+	* emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
+
 2019-04-08  Alan Modra  <amodra@gmail.com>
 
 	* emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
diff --git a/ld/emulparams/elf_i386_be.sh b/ld/emulparams/elf_i386_be.sh
index 8d4cffe901..63d7b6d259 100644
--- a/ld/emulparams/elf_i386_be.sh
+++ b/ld/emulparams/elf_i386_be.sh
@@ -10,5 +10,6 @@  MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=i386
 MACHINE=
 TEMPLATE_NAME=elf32
+EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes
 NO_SMALL_DATA=yes
diff --git a/ld/emulparams/i386moss.sh b/ld/emulparams/i386moss.sh
index 095d85ab92..faee222a11 100644
--- a/ld/emulparams/i386moss.sh
+++ b/ld/emulparams/i386moss.sh
@@ -7,4 +7,5 @@  ARCH=i386
 MACHINE=
 NOP=0x90909090
 TEMPLATE_NAME=elf32
+EXTRA_EM_FILE="elf-x86"
 GENERATE_SHLIB_SCRIPT=yes