aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-04-08 14:07:35 +0930
committerAlan Modra <amodra@gmail.com>2019-04-08 14:11:57 +0930
commitd970ee2bae1925bb9265d37adef0b92e2678d666 (patch)
tree65789895d5adbf6e3ea3741ca8dec10db007e546
parent5f2a6b85105b51f2963aaeb1212c724cab678050 (diff)
downloadgdb-d970ee2bae1925bb9265d37adef0b92e2678d666.zip
gdb-d970ee2bae1925bb9265d37adef0b92e2678d666.tar.gz
gdb-d970ee2bae1925bb9265d37adef0b92e2678d666.tar.bz2
Fix i386-lynxos and other runtime linker fails
Segfaults due to htab->params being NULL. * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define. * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define. * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/emulparams/elf64rdos.sh1
-rw-r--r--ld/emulparams/i386lynx.sh1
-rw-r--r--ld/emulparams/i386nto.sh1
4 files changed, 9 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 88044d1..b1e7b04 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2019-04-08 Alan Modra <amodra@gmail.com>
+
+ * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
+ * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
+ * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
+
2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
diff --git a/ld/emulparams/elf64rdos.sh b/ld/emulparams/elf64rdos.sh
index 021bc70..87164d5 100644
--- a/ld/emulparams/elf64rdos.sh
+++ b/ld/emulparams/elf64rdos.sh
@@ -10,6 +10,7 @@ LARGE_DATA_ADDR=0x80020000000
ARCH="i386:x86-64"
MACHINE=
TEMPLATE_NAME=elf32
+EXTRA_EM_FILE="elf-x86"
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
LARGE_SECTIONS=yes
diff --git a/ld/emulparams/i386lynx.sh b/ld/emulparams/i386lynx.sh
index 93afb3d..b86967b 100644
--- a/ld/emulparams/i386lynx.sh
+++ b/ld/emulparams/i386lynx.sh
@@ -13,6 +13,7 @@ ARCH=i386
MACHINE=
NOP=0x9090
TEMPLATE_NAME=elf32
+EXTRA_EM_FILE="elf-x86"
GENERATE_SHLIB_SCRIPT=yes
ELF_INTERPRETER_NAME=\"/usr/lib/ld.so.1\"
diff --git a/ld/emulparams/i386nto.sh b/ld/emulparams/i386nto.sh
index bb685f3..ab5f84c 100644
--- a/ld/emulparams/i386nto.sh
+++ b/ld/emulparams/i386nto.sh
@@ -8,4 +8,5 @@ ARCH=i386
MACHINE=
NOP=0x9090
TEMPLATE_NAME=elf32
+EXTRA_EM_FILE="elf-x86"
GENERATE_SHLIB_SCRIPT=yes