* 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.
This commit is contained in:
parent
8904ad6940
commit
bd8a4ea444
6 changed files with 56 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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)"
|
||||
|
|
|
@ -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 ;;
|
||||
|
|
|
@ -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
|
||||
|
|
29
ld/emulparams/elf32l5900.sh
Normal file
29
ld/emulparams/elf32l5900.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue