1# If you change this file, please also look at files which source this one:
2# elf32b4300.sh elf32bsmip.sh elf32btsmip.sh elf32ebmip.sh elf32lmip.sh
3
4SCRIPT_NAME=elf
5OUTPUT_FORMAT="elf32-bigmips"
6BIG_OUTPUT_FORMAT="elf32-bigmips"
7LITTLE_OUTPUT_FORMAT="elf32-littlemips"
8TEXT_START_ADDR=0x0400000
9test -n "${EMBEDDED}" || DATA_ADDR=0x10000000
10MAXPAGESIZE=0x40000
11COMMONPAGESIZE=0x1000
12NONPAGED_TEXT_START_ADDR=0x0400000
13SHLIB_TEXT_START_ADDR=0x5ffe0000
14TEXT_DYNAMIC=
15INITIAL_READONLY_SECTIONS="
16  .reginfo      ${RELOCATING-0} : { *(.reginfo) }
17"
18OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
19# If the output has a GOT section, there must be exactly 0x7ff0 bytes
20# between .got and _gp.  The ". = ." below stops the orphan code from
21# inserting other sections between the assignment to _gp and the start
22# of .got.
23OTHER_GOT_SYMBOLS='
24  . = .;
25  _gp = ALIGN(16) + 0x7ff0;
26'
27OTHER_SDATA_SECTIONS="
28  .lit8         ${RELOCATING-0} : { *(.lit8) }
29  .lit4         ${RELOCATING-0} : { *(.lit4) }
30"
31TEXT_START_SYMBOLS='_ftext = . ;'
32DATA_START_SYMBOLS='_fdata = . ;'
33OTHER_BSS_SYMBOLS='_fbss = .;'
34OTHER_SECTIONS='
35  .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
36  .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
37  .mdebug.abi32 : { KEEP(*(.mdebug.abi32)) }
38  .mdebug.abiN32 : { KEEP(*(.mdebug.abiN32)) }
39  .mdebug.abi64 : { KEEP(*(.mdebug.abi64)) }
40  .mdebug.abiO64 : { KEEP(*(.mdebug.abiO64)) }
41  .mdebug.eabi32 : { KEEP(*(.mdebug.eabi32)) }
42  .mdebug.eabi64 : { KEEP(*(.mdebug.eabi64)) }
43  .gcc_compiled_long32 : { KEEP(*(.gcc_compiled_long32)) }
44  .gcc_compiled_long64 : { KEEP(*(.gcc_compiled_long64)) }
45'
46ARCH=mips
47MACHINE=
48TEMPLATE_NAME=elf32
49GENERATE_SHLIB_SCRIPT=yes
50GENERATE_PIE_SCRIPT=yes
51NOP=0x00000000
52TRAP=0xefefefef
53