2009-06-19 Tristan Gingold <gingold@adacore.com>
[binutils.git] / ld / emulparams / scoreelf.sh
blob3a7ed3158a9d9e76cf130d700e55dca71b093426
1 MACHINE=
2 SCRIPT_NAME=elf
3 TEMPLATE_NAME=elf32
4 EXTRA_EM_FILE=scoreelf
5 OUTPUT_FORMAT="elf32-bigscore"
6 BIG_OUTPUT_FORMAT="elf32-bigscore"
7 LITTLE_OUTPUT_FORMAT="elf32-littlescore"
8 NO_RELA_RELOCS=yes
9 GROUP="-lm -lc -lglsim -lgcc -lstdc++"
11 TEXT_START_ADDR=0x00000000
12 MAXPAGESIZE=256
13 NONPAGED_TEXT_START_ADDR=0x0400000
14 SHLIB_TEXT_START_ADDR=0x5ffe0000
15 OTHER_GOT_SYMBOLS='
16 _gp = ALIGN(16) + 0x3ff0;
19 OTHER_BSS_START_SYMBOLS='_bss_start__ = . + ALIGN(4);'
20 OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ; __end__ = . ;'
21 DATA_START_SYMBOLS='_fdata = . ;'
22 SDATA_START_SYMBOLS='_sdata_begin = . ;'
23 OTHER_BSS_SYMBOLS='
24 _bss_start = ALIGN(4) ;
26 # This sets the stack to the top of the simulator memory (2^19 bytes).
27 STACK_ADDR=0x8000000
29 SCORE_NAME=${EMULATION_NAME}
30 if [ "${SCORE_NAME}" = "score3_elf" ] ; then
31 ARCH=score3
34 if [ "${SCORE_NAME}" = "score7_elf" ] ; then
35 ARCH=score7
38 MACHINE=
39 ENTRY=_start
40 EMBEDDED=yes
41 GENERATE_SHLIB_SCRIPT=yes