From f1781adcf37819bbb7b45a43ae0a0da638f8da15 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 20 Sep 1994 18:41:27 +0000 Subject: [PATCH] * configure.in (mips*el-elf*): New target. * config/mipsl-elf32.mt: New file. * emulparams/elf32mipl.sh: New file. --- ld/ChangeLog | 6 ++++++ ld/config/.Sanitize | 3 ++- ld/config/mipsl-elf32.mt | 1 + ld/configure.in | 2 ++ ld/emulparams/.Sanitize | 1 + ld/emulparams/elf32mipl.sh | 24 ++++++++++++++++++++++++ 6 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 ld/config/mipsl-elf32.mt create mode 100644 ld/emulparams/elf32mipl.sh diff --git a/ld/ChangeLog b/ld/ChangeLog index 3d979601b37..11ef4299419 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +Tue Sep 20 14:35:27 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) + + * configure.in (mips*el-elf*): New target. + * config/mipsl-elf32.mt: New file. + * emulparams/elf32mipl.sh: New file. + Fri Sep 16 12:16:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) * ldmain.c (main): Rather than prohibiting ld -r -s, treat it as diff --git a/ld/config/.Sanitize b/ld/config/.Sanitize index bf62623840a..7c11dde7acf 100644 --- a/ld/config/.Sanitize +++ b/ld/config/.Sanitize @@ -69,9 +69,10 @@ mipsbsd.mh mipsbsd.mt mips-big.mt mips-idt.mt +mipsb-elf32.mt +mipsl-elf32.mt mipsl-idt.mt mips-lit.mt -mipsb-elf32.mt news.mt ose68.mt ppc-elf32.mt diff --git a/ld/config/mipsl-elf32.mt b/ld/config/mipsl-elf32.mt new file mode 100644 index 00000000000..a21e8f93a4b --- /dev/null +++ b/ld/config/mipsl-elf32.mt @@ -0,0 +1 @@ +EMUL=elf32mipl diff --git a/ld/configure.in b/ld/configure.in index 71dc89e7d4c..8eb350c606f 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -82,6 +82,7 @@ case "${targ}" in a29k-*-udi) ld_target=sa29200 ;; a29k-*-ebmon) ld_target=ebmon29k ;; a29k-*-*) ld_target=coff-a29k ;; +# arm-*-riscix*) ld_target=riscix ;; h8300-*-hms) ld_target=coff-h8300 ;; h8300h-*-hms) ld_target=cf-h8300h ;; h8500-*-hms) ld_target=coff-h8500 ;; @@ -103,6 +104,7 @@ case "${targ}" in mips*el-idt-ecoff*) ld_target=mipsl-idt ;; mips*-idt-ecoff*) ld_target=mips-idt ;; mips*-dec-bsd*) ld_target=mipsbsd ;; + mips*el-elf*) ld_target=mipsl-elf32 ;; mips*-*-elf*) ld_target=mipsb-elf32 ;; alpha-*-osf*) ld_target=alpha ;; alpha-*-netware*) ld_target=alpha ;; diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize index 4d703ec98ec..75029925204 100644 --- a/ld/emulparams/.Sanitize +++ b/ld/emulparams/.Sanitize @@ -32,6 +32,7 @@ ebmon29k.sh elf32_sparc.sh elf64_sparc.sh elf32mipb.sh +elf32mipl.sh elf32ppc.sh elf_i386.sh gld960.sh diff --git a/ld/emulparams/elf32mipl.sh b/ld/emulparams/elf32mipl.sh new file mode 100644 index 00000000000..4a710dc820c --- /dev/null +++ b/ld/emulparams/elf32mipl.sh @@ -0,0 +1,24 @@ +SCRIPT_NAME=elf +OUTPUT_FORMAT="elf32-littlemips" +TEXT_START_ADDR=0x0400000 +DATA_ADDR=0x10000000 +MAXPAGESIZE=0x40000 +NONPAGED_TEXT_START_ADDR=0x0400000 +OTHER_READONLY_SECTIONS='.reginfo : { *(.reginfo) }' +OTHER_READWRITE_SECTIONS=' + _gp = . + 0x8000; + .lit8 : { *(.lit8) } + .lit4 : { *(.lit4) } +' +TEXT_START_SYMBOLS='_ftext = . ;' +DATA_START_SYMBOLS='_fdata = . ;' +OTHER_BSS_SYMBOLS='_fbss = .;' +EXECUTABLE_SYMBOLS='_DYNAMIC_LINK = 0;' +OTHER_SECTIONS=' + .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) } + .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) } +' +ARCH=mips +TEMPLATE_NAME=elf32 +GENERATE_SHLIB_SCRIPT=yes +DYNAMIC_LINK=false -- 2.30.2