From bd8a4ea44402fbc897315353116fa05c71764cdf Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 10 Feb 1998 18:52:26 +0000 Subject: [PATCH] * Makefile.in (ALL_EMULATIONS): Add eelf32l5900.o (eelf32l5900.c): Add rule for building. * configure.tgt: Use r5900 specific emulation script. * emulparams/elf32l5900.sh: 5900 specific emulation script. --- ld/.Sanitize | 2 +- ld/ChangeLog | 9 +++++++++ ld/Makefile.in | 8 ++++++++ ld/configure.tgt | 2 +- ld/emulparams/.Sanitize | 8 ++++++++ ld/emulparams/elf32l5900.sh | 29 +++++++++++++++++++++++++++++ 6 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 ld/emulparams/elf32l5900.sh diff --git a/ld/.Sanitize b/ld/.Sanitize index 912bc81..6d5e318 100644 --- a/ld/.Sanitize +++ b/ld/.Sanitize @@ -147,7 +147,7 @@ else done fi -r5900_files="ChangeLog configure.tgt" +r5900_files="ChangeLog configure.tgt Makefile.in" if ( echo $* | grep keep\-r5900 > /dev/null ) ; then for i in $r5900_files ; do diff --git a/ld/ChangeLog b/ld/ChangeLog index c7849fd..1823544 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,12 @@ +start-sanitize-r5900 +Tue Feb 10 11:52:33 1998 Jeffrey A Law (law@cygnus.com) + + * Makefile.in (ALL_EMULATIONS): Add eelf32l5900.o + (eelf32l5900.c): Add rule for building. + * configure.tgt: Use r5900 specific emulation script. + * emulparams/elf32l5900.sh: 5900 specific emulation script. + +end-sanitize-r5900 Mon Feb 9 13:44:40 1998 Andrew Cagney * scripttempl/elfd10v.sc (.stack): Move stack to 0x00..7FFE. diff --git a/ld/Makefile.in b/ld/Makefile.in index 7227dfc..aec5753 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -184,6 +184,9 @@ ALL_EMULATIONS = \ eelf32ebmip.o \ eelf32elmip.o \ eelf32l4300.o \ + $(start-sanitize-r5900) \ + eelf32l5900.o \ + $(end-sanitize-r5900) \ eelf32lmip.o \ eelf32lppc.o \ eelf32ppc.o \ @@ -798,6 +801,11 @@ eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \ eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)" +start-sanitize-r5900: +eelf32l5900.c: $(srcdir)/emulparams/elf32l5900.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf32l5900 "$(tdir_elf32l5900)" +end-sanitize-r5900: eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)" diff --git a/ld/configure.tgt b/ld/configure.tgt index 8677933..7ece882 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -163,7 +163,7 @@ mips*tx49el-*-elf*) targ_emul=elf32l4300 ;; mips*tx49-*-elf*) targ_emul=elf32b4300 ;; # end-sanitize-tx49 # start-sanitize-r5900 -mips*r5900*-*-elf*) targ_emul=elf32l4300 ;; +mips*r5900*-*-elf*) targ_emul=elf32l5900 ;; # end-sanitize-r5900 mips*el-*-elf*) targ_emul=elf32elmip ;; mips*-*-elf*) targ_emul=elf32ebmip ;; diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize index 13308d8..4f532f9 100644 --- a/ld/emulparams/.Sanitize +++ b/ld/emulparams/.Sanitize @@ -31,6 +31,14 @@ else lose_these_too="${tic80_files} ${lose_these_too}" fi +r5900_files="elf32l5900.sh" + +if ( echo $* | grep keep\-r5900 > /dev/null ) ; then + keep_these_too="${r5900_files} ${keep_these_too}" +else + lose_these_too="${r5900_files} ${lose_these_too}" +fi + # All files listed between the "Things-to-keep:" line and the # "Do-last:" line will be kept. All other files will be removed. # Directories listed in this section will have their own Sanitize diff --git a/ld/emulparams/elf32l5900.sh b/ld/emulparams/elf32l5900.sh new file mode 100644 index 0000000..0ab64aa --- /dev/null +++ b/ld/emulparams/elf32l5900.sh @@ -0,0 +1,29 @@ +SCRIPT_NAME=elf +OUTPUT_FORMAT="elf32-littlemips" +BIG_OUTPUT_FORMAT="elf32-bigmips" +LITTLE_OUTPUT_FORMAT="elf32-littlemips" +TEXT_START_ADDR=0xa0020000 +MAXPAGESIZE=0x40000 +INITIAL_READONLY_SECTIONS='.reginfo : { *(.reginfo) }' +OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)' +OTHER_GOT_SYMBOLS=' + _gp = ALIGN(16) + 0x7ff0; +' +OTHER_GOT_SECTIONS=' + .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:5900" +MACHINE= +TEMPLATE_NAME=elf32 +GENERATE_SHLIB_SCRIPT=yes +DYNAMIC_LINK=false +EMBEDDED=yes -- 2.7.4