setvar DEFAULT_TEXT_START_ADDR = '0' setvar DEFAULT_STACK_START_ADDR = '0' setvar MACHINE = '' setvar SCRIPT_NAME = 'nds32elf' setvar TEMPLATE_NAME = 'elf32' setvar EXTRA_EM_FILE = 'nds32elf' setvar BIG_OUTPUT_FORMAT = ""elf32-nds32be-linux"" setvar LITTLE_OUTPUT_FORMAT = ""elf32-nds32le-linux"" setvar OUTPUT_FORMAT = "$LITTLE_OUTPUT_FORMAT" setvar LIB_PATH = ""=/usr/local/lib:=/lib:=/usr/lib/"" if test ${DEFAULT_TEXT_START_ADDR} = "0" { setvar TEXT_START_ADDR = '0x8000' } else { setvar TEXT_START_ADDR = ${DEFAULT_TEXT_START_ADDR} } setvar ARCH = 'nds32' setvar MACHINE = '' setvar MAXPAGESIZE = ""CONSTANT (MAXPAGESIZE)"" setvar COMMONPAGESIZE = ""CONSTANT (COMMONPAGESIZE)"" # Hmmm, there's got to be a better way. This sets the stack to the # top of simulator memory (32MB). if test ${DEFAULT_STACK_START_ADDR} = "0" { setvar OTHER_RELOCATING_SECTIONS = ''PROVIDE (_stack = 0x2000000);'' } else { setvar OTHER_RELOCATING_SECTIONS = ""PROVIDE (_stack = ${DEFAULT_STACK_START_ADDR});"" } setvar GENERATE_SHLIB_SCRIPT = 'yes' setvar GENERATE_PIE_SCRIPT = 'yes' # Use external linker script files. setvar COMPILE_IN = 'no'