2001-01-03 Philip Blundell <pb@futuretv.com>
[binutils.git] / ld / emulparams / crislinux.sh
blob6be4f5803f679dd2e518946302b80142d8f5d196
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"
5 ARCH=cris
6 TEMPLATE_NAME=elf32
8 ENTRY=_start
10 # Needed? Perhaps should be page-size alignment.
11 ALIGNMENT=32
12 GENERATE_SHLIB_SCRIPT=yes
14 # Is this high enough and low enough?
15 TEXT_START_ADDR=0x80000
17 MAXPAGESIZE=8192
19 # FIXME: GOT, PLT...
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 = .);'
26 # Smuggle an "OTHER_TEXT_END_SYMBOLS" here.
27 OTHER_READONLY_SECTIONS='PROVIDE (__Etext = .);'
28 DATA_START_SYMBOLS='PROVIDE (__Sdata = .);'
30 # Smuggle an "OTHER_DATA_END_SYMBOLS" here.
31 OTHER_GOT_SECTIONS='PROVIDE (__Edata = .);'
32 OTHER_BSS_SYMBOLS='PROVIDE (__Sbss = .);'
33 OTHER_BSS_END_SYMBOLS='PROVIDE (__Ebss = .);'
35 # Smuggle an "OTHER_ALL_END_SYMBOLS" here.
36 # Also add the other symbols provided for rsim/xsim and elinux.
37 OTHER_RELOCATING_SECTIONS='
38 PROVIDE (__Eall = .);
39 PROVIDE(__Endmem = 0x10000000);
40 PROVIDE(__Stacksize = 0);