aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-08 23:37:45 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-08 23:37:45 +0000
commited753c20492aad05a0bd210970412c6e333dd09c (patch)
tree0381d7a2c296fd4d5591c4cbbcee45fa22fe1276 /ld/emulparams
parent2b71e1e4d790289e6c62d67104cdfa968ba1d94e (diff)
downloadgdb-ed753c20492aad05a0bd210970412c6e333dd09c.zip
gdb-ed753c20492aad05a0bd210970412c6e333dd09c.tar.gz
gdb-ed753c20492aad05a0bd210970412c6e333dd09c.tar.bz2
Add Linux style directory searching.
* configure.tgt: Add i386lelf to targ_extra_emuls for i[345]86-*-linuxaout* and i[345]86-*-linuxoldld. For i[345]86-*-linux*, set targ_emul to i386lelf, and add elf_i386 to targ_extra_emuls. * emulparams/i386lelf.sh: New file, a copy of elf_i386.sh. * emultempl/elf32.em: If TARGET_IS_i386lelf, use autoconf recommended mechanism to define DIR and struct dirent. (libcmp): New static function use only when TARGET_IS_i386lelf. (gld${EMULATION_NAME}_open_dynamic_archive): Likewise. * Makefile.in (ALL_EMULATIONS): Add ei386lelf.o (ei386lelf.c): New target.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/.Sanitize1
-rw-r--r--ld/emulparams/i386lelf.sh9
2 files changed, 10 insertions, 0 deletions
diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize
index dc0ec29..5b129e2 100644
--- a/ld/emulparams/.Sanitize
+++ b/ld/emulparams/.Sanitize
@@ -74,6 +74,7 @@ i386bsd.sh
i386coff.sh
i386go32.sh
i386linux.sh
+i386lelf.sh
i386lynx.sh
i386mach.sh
i386moss.sh
diff --git a/ld/emulparams/i386lelf.sh b/ld/emulparams/i386lelf.sh
new file mode 100644
index 0000000..b841d9c
--- /dev/null
+++ b/ld/emulparams/i386lelf.sh
@@ -0,0 +1,9 @@
+SCRIPT_NAME=elf
+OUTPUT_FORMAT="elf32-i386"
+TEXT_START_ADDR=0x08000000
+MAXPAGESIZE=0x1000
+NONPAGED_TEXT_START_ADDR=0x08000000
+ARCH=i386
+NOP=0x9090
+TEMPLATE_NAME=elf32
+GENERATE_SHLIB_SCRIPT=yes