1 # This is an approximation of what we want for a real linux system (with MMU and ELF).
4 OUTPUT_FORMAT
="elf32-cris"
10 # Needed? Perhaps should be page-size alignment.
12 GENERATE_SHLIB_SCRIPT
=yes
14 # Is this high enough and low enough?
15 TEXT_START_ADDR
=0x80000
19 # We don't do the hoops through DEFINED to provide [_]*start, as it
20 # doesn't work with --gc-sections, and the start-name is pretty fixed
22 TEXT_START_SYMBOLS
='PROVIDE (__Stext = .);'
24 # Smuggle an "OTHER_TEXT_END_SYMBOLS" here.
25 OTHER_READONLY_SECTIONS
='PROVIDE (__Etext = .);'
26 DATA_START_SYMBOLS
='PROVIDE (__Sdata = .);'
28 # Smuggle an "OTHER_DATA_END_SYMBOLS" here.
29 OTHER_SDATA_SECTIONS
='PROVIDE (__Edata = .);'
30 OTHER_BSS_SYMBOLS
='PROVIDE (__Sbss = .);'
31 OTHER_BSS_END_SYMBOLS
='PROVIDE (__Ebss = .);'
33 # Smuggle an "OTHER_ALL_END_SYMBOLS" here.
34 # Also add the other symbols provided for rsim/xsim and elinux.
35 OTHER_RELOCATING_SECTIONS
='
37 PROVIDE(__Endmem = 0x10000000);
38 PROVIDE(__Stacksize = 0);