1 DEFAULT_TEXT_START_ADDR
=0
2 DEFAULT_STACK_START_ADDR
=0
7 BIG_OUTPUT_FORMAT
="elf32-nds32be-linux"
8 LITTLE_OUTPUT_FORMAT
="elf32-nds32le-linux"
9 OUTPUT_FORMAT
="$LITTLE_OUTPUT_FORMAT"
10 LIB_PATH
="=/usr/local/lib:=/lib:=/usr/lib/"
12 if [ "${DEFAULT_TEXT_START_ADDR}" = "0" ]; then
13 TEXT_START_ADDR
=0x8000
15 TEXT_START_ADDR
=${DEFAULT_TEXT_START_ADDR}
20 MAXPAGESIZE
="CONSTANT (MAXPAGESIZE)"
21 COMMONPAGESIZE
="CONSTANT (COMMONPAGESIZE)"
23 # Hmmm, there's got to be a better way. This sets the stack to the
24 # top of simulator memory (32MB).
25 if [ "${DEFAULT_STACK_START_ADDR}" = "0" ]; then
26 OTHER_RELOCATING_SECTIONS
='PROVIDE (_stack = 0x2000000);'
28 OTHER_RELOCATING_SECTIONS
="PROVIDE (_stack = ${DEFAULT_STACK_START_ADDR});"
31 GENERATE_SHLIB_SCRIPT
=yes
32 GENERATE_PIE_SCRIPT
=yes
34 # Use external linker script files.