crislinux.sh revision 1.1.1.2
1# This is an approximation of what we want for a real linux system (with MMU and ELF). 2MACHINE= 3SCRIPT_NAME=elf 4OUTPUT_FORMAT="elf32-cris" 5NO_REL_RELOCS=yes 6ARCH=cris 7TEMPLATE_NAME=elf32 8 9ENTRY=_start 10 11# Needed? Perhaps should be page-size alignment. 12ALIGNMENT=32 13GENERATE_SHLIB_SCRIPT=yes 14 15# Is this high enough and low enough? 16TEXT_START_ADDR=0x80000 17 18MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" 19 20# We don't do the hoops through DEFINED to provide [_]*start, as it 21# doesn't work with --gc-sections, and the start-name is pretty fixed 22# anyway. 23TEXT_START_SYMBOLS='PROVIDE (__Stext = .);' 24 25# Smuggle an "OTHER_TEXT_END_SYMBOLS" here. 26OTHER_READONLY_SECTIONS="${RELOCATING+PROVIDE (__Etext = .);}" 27DATA_START_SYMBOLS='PROVIDE (__Sdata = .);' 28 29# Smuggle an "OTHER_DATA_END_SYMBOLS" here. 30OTHER_SDATA_SECTIONS="${RELOCATING+PROVIDE (__Edata = .);}" 31OTHER_BSS_SYMBOLS='PROVIDE (__Sbss = .);' 32OTHER_BSS_END_SYMBOLS='PROVIDE (__Ebss = .);' 33 34# Also add the other symbols provided for rsim/xsim and elinux. 35OTHER_SYMBOLS=' 36 PROVIDE (__Eall = .); 37 PROVIDE (__Endmem = 0x10000000); 38 PROVIDE (__Stacksize = 0); 39' 40NO_SMALL_DATA=yes 41