diff options
author | Nick Clifton <nickc@redhat.com> | 2003-10-30 09:47:15 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-10-30 09:47:15 +0000 |
commit | 325fab4e4e60d4b0218fab6af233f2afc3e92152 (patch) | |
tree | c971a445ced58d2ccecf7bb89e9d24ae24796188 /ld/emulparams | |
parent | 257e20bc323b2479e80728752b49cb362689f4cf (diff) | |
download | gdb-325fab4e4e60d4b0218fab6af233f2afc3e92152.zip gdb-325fab4e4e60d4b0218fab6af233f2afc3e92152.tar.gz gdb-325fab4e4e60d4b0218fab6af233f2afc3e92152.tar.bz2 |
Switch to ELF targeted VxWorks targets
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/elf32mipswindiss.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ld/emulparams/elf32mipswindiss.sh b/ld/emulparams/elf32mipswindiss.sh new file mode 100644 index 0000000..4f1148b --- /dev/null +++ b/ld/emulparams/elf32mipswindiss.sh @@ -0,0 +1,27 @@ +TEMPLATE_NAME=elf32 +SCRIPT_NAME=elf +OUTPUT_FORMAT="elf32-bigmips" +BIG_OUTPUT_FORMAT="elf32-bigmips" +LITTLE_OUTPUT_FORMAT="elf32-littlemips" +ARCH=mips +MACHINE= +EMBEDDED=yes +MAXPAGESIZE=0x40000 + +# The data below is taken from the windiss.dld linker script that comes with +# the Diab linker. +TEXT_START_ADDR=0x100000 +DATA_START_SYMBOLS='__DATA_ROM = .; __DATA_RAM = .;' +SDATA_START_SYMBOLS='_SDA_BASE_ = .; _gp = . + 0x7ff0;' +SDATA2_START_SYMBOLS='_SDA2_BASE_ = .;' +EXECUTABLE_SYMBOLS='__HEAP_START = .; __SP_INIT = 0x800000; __SP_END = __SP_INIT - 0x20000; __HEAP_END = __SP_END; __DATA_END = _edata; __BSS_START = __bss_start; __BSS_END = _end; __HEAP_START = _end;' + +# The Diab tools use a different init/fini convention. Initialization code +# is place in sections named ".init$NN". These sections are then concatenated +# into the .init section. It is important that .init$00 be first and .init$99 +# be last. The other sections should be sorted, but the current linker script +# parse does not seem to allow that with the SORT keyword in this context. +INIT_START='*(.init$00); *(.init$0[1-9]); *(.init$[1-8][0-9]); *(.init$9[0-8])' +INIT_END='*(.init$99)' +FINI_START='*(.fini$00); *(.fini$0[1-9]); *(.fini$[1-8][0-9]); *(.fini$9[0-8])' +FINI_END='*(.fini$99)' |