* Makefile.in (ALL_EMULATIONS): Add eelf32l5900.o
authorJeff Law <law@redhat.com>
Tue, 10 Feb 1998 18:52:26 +0000 (18:52 +0000)
committerJeff Law <law@redhat.com>
Tue, 10 Feb 1998 18:52:26 +0000 (18:52 +0000)
        (eelf32l5900.c): Add rule for building.
        * configure.tgt: Use r5900 specific emulation script.
        * emulparams/elf32l5900.sh: 5900 specific emulation script.

ld/.Sanitize
ld/ChangeLog
ld/Makefile.in
ld/configure.tgt
ld/emulparams/.Sanitize
ld/emulparams/elf32l5900.sh [new file with mode: 0644]

index 912bc81..6d5e318 100644 (file)
@@ -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
index c7849fd..1823544 100644 (file)
@@ -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  <cagney@b1.cygnus.com>
 
        * scripttempl/elfd10v.sc (.stack): Move stack to 0x00..7FFE.
index 7227dfc..aec5753 100644 (file)
@@ -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)"
index 8677933..7ece882 100644 (file)
@@ -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 ;;
index 13308d8..4f532f9 100644 (file)
@@ -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 (file)
index 0000000..0ab64aa
--- /dev/null
@@ -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