# This is an approximation of what we want for a real linux system (with MMU and ELF). setvar MACHINE = '' setvar SCRIPT_NAME = 'elf' setvar OUTPUT_FORMAT = ""elf32-cris"" setvar NO_REL_RELOCS = 'yes' setvar ARCH = 'cris' setvar TEMPLATE_NAME = 'elf32' setvar ENTRY = '_start' # Needed? Perhaps should be page-size alignment. setvar ALIGNMENT = '32' setvar GENERATE_SHLIB_SCRIPT = 'yes' # Is this high enough and low enough? setvar TEXT_START_ADDR = '0x80000' setvar MAXPAGESIZE = ""CONSTANT (MAXPAGESIZE)"" setvar COMMONPAGESIZE = ""CONSTANT (COMMONPAGESIZE)"" # We don't do the hoops through DEFINED to provide [_]*start, as it # doesn't work with --gc-sections, and the start-name is pretty fixed # anyway. setvar TEXT_START_SYMBOLS = ''PROVIDE (__Stext = .);'' # Smuggle an "OTHER_TEXT_END_SYMBOLS" here. setvar OTHER_READONLY_SECTIONS = "${RELOCATING+PROVIDE (__Etext = .);}" setvar DATA_START_SYMBOLS = ''PROVIDE (__Sdata = .);'' # Smuggle an "OTHER_DATA_END_SYMBOLS" here. setvar OTHER_SDATA_SECTIONS = "${RELOCATING+PROVIDE (__Edata = .);}" setvar OTHER_BSS_SYMBOLS = ''PROVIDE (__Sbss = .);'' setvar OTHER_BSS_END_SYMBOLS = ''PROVIDE (__Ebss = .);'' # Also add the other symbols provided for rsim/xsim and elinux. setvar OTHER_SYMBOLS = '' PROVIDE (__Eall = .); PROVIDE (__Endmem = 0x10000000); PROVIDE (__Stacksize = 0); '' setvar NO_SMALL_DATA = 'yes'