2332114c71
* emulparams/elf32mipsb.sh (DATA_ADDR): Define. (OTHER_READONLY_SECTIONS): Define for .reginfo. (EXECUTABLE_SYMBOLS): Define for _DYNAMIC_LINK. * scripttempl/elf.sc: Use EXECUTABLE_SYMBOLS when not relocating. Move OTHER_READONLY_SECTIONS after all the other readonly sections. Don't use DATA_ADDR twice.
14 lines
352 B
Bash
14 lines
352 B
Bash
SCRIPT_NAME=elf
|
|
OUTPUT_FORMAT="elf32-bigmips"
|
|
TEXT_START_ADDR=0x0400000
|
|
DATA_ADDR=0x10000000
|
|
MAXPAGESIZE=0x40000
|
|
NONPAGED_TEXT_START_ADDR=0x0400000
|
|
OTHER_READONLY_SECTIONS='.reginfo . : { *(.reginfo) }'
|
|
OTHER_READWRITE_SECTIONS='
|
|
_gp = . + 0x8000;
|
|
.lit8 . : { *(.lit8) }
|
|
.lit4 . : { *(.lit4) }
|
|
'
|
|
EXECUTABLE_SYMBOLS='_DYNAMIC_LINK = 0;'
|
|
ARCH=mips
|