summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ld/config/.Sanitize2
-rw-r--r--ld/config/i386-elf.mt1
-rw-r--r--ld/config/i386v4.mh3
-rw-r--r--ld/emulparams/.Sanitize1
-rw-r--r--ld/emulparams/elf_i386.sh7
5 files changed, 14 insertions, 0 deletions
diff --git a/ld/config/.Sanitize b/ld/config/.Sanitize
index aed1504696..2a0f25fbd9 100644
--- a/ld/config/.Sanitize
+++ b/ld/config/.Sanitize
@@ -41,10 +41,12 @@ hppaosf.mt
i386-aout.mt
i386-bsd.mt
i386-coff.mt
+i386-elf.mt
i386-linux.mt
i386sco.mh
i386v.mh
i386v.mt
+i386v4.mh
i960.mt
ieee-h8300.mt
irix4.mh
diff --git a/ld/config/i386-elf.mt b/ld/config/i386-elf.mt
new file mode 100644
index 0000000000..f7c806161c
--- /dev/null
+++ b/ld/config/i386-elf.mt
@@ -0,0 +1 @@
+EMUL=elf_i386
diff --git a/ld/config/i386v4.mh b/ld/config/i386v4.mh
new file mode 100644
index 0000000000..5d0c5496ee
--- /dev/null
+++ b/ld/config/i386v4.mh
@@ -0,0 +1,3 @@
+HOSTING_CRT0=/usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xa.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; fi`
+HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; fi` /usr/ccs/lib/crtn.o
+NATIVE_LIB_DIRS=/usr/ccs/lib
diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize
index 80c220da8b..3a44de066a 100644
--- a/ld/emulparams/.Sanitize
+++ b/ld/emulparams/.Sanitize
@@ -29,6 +29,7 @@ a29k.sh
ebmon29k.sh
elf32_sparc.sh
elf64_sparc.sh
+elf_i386.sh
gld960.sh
go32.sh
h8300.sh
diff --git a/ld/emulparams/elf_i386.sh b/ld/emulparams/elf_i386.sh
new file mode 100644
index 0000000000..cb08fdb003
--- /dev/null
+++ b/ld/emulparams/elf_i386.sh
@@ -0,0 +1,7 @@
+SCRIPT_NAME=elf
+OUTPUT_FORMAT="elf32-i386"
+TEXT_START_ADDR=0x08000000
+MAXPAGESIZE=0x1000
+NONPAGED_TEXT_START_ADDR=0x08000000
+ARCH=i386
+NOP=0x9090
OpenPOWER on IntegriCloud