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