Blame ld/emulparams/elf32mipswindiss.sh
|
Packit |
ba3681 |
TEMPLATE_NAME=elf32
|
|
Packit |
ba3681 |
SCRIPT_NAME=elf
|
|
Packit |
ba3681 |
OUTPUT_FORMAT="elf32-bigmips"
|
|
Packit |
ba3681 |
BIG_OUTPUT_FORMAT="elf32-bigmips"
|
|
Packit |
ba3681 |
LITTLE_OUTPUT_FORMAT="elf32-littlemips"
|
|
Packit |
ba3681 |
ARCH=mips
|
|
Packit |
ba3681 |
MACHINE=
|
|
Packit |
ba3681 |
EMBEDDED=yes
|
|
Packit |
ba3681 |
MAXPAGESIZE=0x40000
|
|
Packit |
ba3681 |
|
|
Packit |
ba3681 |
# The data below is taken from the windiss.dld linker script that comes with
|
|
Packit |
ba3681 |
# the Diab linker.
|
|
Packit |
ba3681 |
TEXT_START_ADDR=0x100000
|
|
Packit |
ba3681 |
DATA_START_SYMBOLS='__DATA_ROM = .; __DATA_RAM = .;'
|
|
Packit |
ba3681 |
SDATA_START_SYMBOLS='_SDA_BASE_ = .; HIDDEN (_gp = . + 0x7ff0);'
|
|
Packit |
ba3681 |
SDATA2_START_SYMBOLS='_SDA2_BASE_ = .;'
|
|
Packit |
ba3681 |
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;'
|
|
Packit |
ba3681 |
|
|
Packit |
ba3681 |
# The Diab tools use a different init/fini convention. Initialization code
|
|
Packit |
ba3681 |
# is place in sections named ".init$NN". These sections are then concatenated
|
|
Packit |
ba3681 |
# into the .init section. It is important that .init$00 be first and .init$99
|
|
Packit |
ba3681 |
# be last. The other sections should be sorted, but the current linker script
|
|
Packit |
ba3681 |
# parse does not seem to allow that with the SORT keyword in this context.
|
|
Packit |
ba3681 |
INIT_START='*(.init$00); *(.init$0[1-9]); *(.init$[1-8][0-9]); *(.init$9[0-8])'
|
|
Packit |
ba3681 |
INIT_END='*(.init$99)'
|
|
Packit |
ba3681 |
FINI_START='*(.fini$00); *(.fini$0[1-9]); *(.fini$[1-8][0-9]); *(.fini$9[0-8])'
|
|
Packit |
ba3681 |
FINI_END='*(.fini$99)'
|