aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1998-02-10 18:52:26 +0000
committerJeff Law <law@redhat.com>1998-02-10 18:52:26 +0000
commitbd8a4ea44402fbc897315353116fa05c71764cdf (patch)
tree3b5de6e3561bf44ab593a67c2f1191ca8155e789 /ld/emulparams
parent8904ad69408573c5c8337a26466f77b2ea4be189 (diff)
downloadgdb-bd8a4ea44402fbc897315353116fa05c71764cdf.zip
gdb-bd8a4ea44402fbc897315353116fa05c71764cdf.tar.gz
gdb-bd8a4ea44402fbc897315353116fa05c71764cdf.tar.bz2
* 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.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/.Sanitize8
-rw-r--r--ld/emulparams/elf32l5900.sh29
2 files changed, 37 insertions, 0 deletions
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