Rename elf32.em to elf.em
[deliverable/binutils-gdb.git] / ld / emulparams / elf32_tic6x_le.sh
CommitLineData
40b36596 1SCRIPT_NAME=elf
075a2b89 2TEMPLATE_NAME=elf
40b36596 3OUTPUT_FORMAT="elf32-tic6x-le"
ac145307
BS
4BIG_OUTPUT_FORMAT="elf32-tic6x-be"
5EXTRA_EM_FILE=tic6xdsbt
6GENERATE_SHLIB_SCRIPT=yes
40b36596
JM
7# This address is an arbitrary value expected to be suitable for
8# semihosting simulator use, but not on hardware where it is expected
9# to be overridden.
ac145307
BS
10case ${target} in
11 *-elf)
12 TEXT_START_ADDR=0x8000
13 ;;
14 *-uclinux)
15 TEXT_START_ADDR=0x0
16 GOT="
17.got ${RELOCATING-0} : {
2bf2bf23
AM
18 ${RELOCATING+*(.dsbt)
19 *(.got.plt) *(.igot.plt) }*(.got)${RELOCATING+ *(.igot)}
ac145307
BS
20}"
21 ;;
22esac
40b36596
JM
23MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
24ARCH=tic6x
ac145307 25OTHER_GOT_SYMBOLS="PROVIDE_HIDDEN (__c6xabi_DSBT_BASE = .);"
40b36596
JM
26# ".bss" is near (small) BSS, ".far" is far (normal) BSS, ".const" is
27# far read-only data, ".rodata" is near read-only data. ".neardata"
28# is near (small) data, ".fardata" is (along with .data) far data.
29RODATA_NAME="const"
30SDATA_NAME="neardata"
31SBSS_NAME="bss"
32BSS_NAME="far"
6970a028
PB
33OTHER_READONLY_SECTIONS="
34 .c6xabi.extab ${RELOCATING-0} : { *(.c6xabi.extab${RELOCATING+* .gnu.linkonce.c6xabiextab.*}) }
35 ${RELOCATING+ PROVIDE_HIDDEN (__exidx_start = .); }
36 .c6xabi.exidx ${RELOCATING-0} : { *(.c6xabi.exidx${RELOCATING+* .gnu.linkonce.c6xabiexidx.*}) }
37 ${RELOCATING+ PROVIDE_HIDDEN (__exidx_end = .); }"
40b36596
JM
38OTHER_SDATA_SECTIONS=".rodata ${RELOCATING-0} : { *(.rodata${RELOCATING+ .rodata.*}) }"
39OTHER_READONLY_RELOC_SECTIONS="
40 .rel.rodata ${RELOCATING-0} : { *(.rel.rodata${RELOCATING+ .rel.rodata.*}) }
41 .rela.rodata ${RELOCATING-0} : { *(.rela.rodata${RELOCATING+ .rela.rodata.*}) }"
42OTHER_READWRITE_SECTIONS=".fardata ${RELOCATING-0} : { *(.fardata${RELOCATING+ .fardata.*}) }"
43OTHER_READWRITE_RELOC_SECTIONS="
44 .rel.fardata ${RELOCATING-0} : { *(.rel.fardata${RELOCATING+ .rel.fardata.*}) }
45 .rela.fardata ${RELOCATING-0} : { *(.rela.fardata${RELOCATING+ .rela.fardata.*}) }"
16c1c9d6
CG
46# For relocating operation, skip OTHER_BSS_SECTIONS, or will cause multiple definition.
47if [ ${RELOCATING-0} ]; then
48 OTHER_BSS_SECTIONS="";
49else
50 case ${target} in
51
ac145307
BS
52 *-elf)
53 OTHER_BSS_SECTIONS="
e4492aa0
L
54 .heap :
55 {
56 . = ALIGN(4);
57 _HEAP_START = .;
58 . += 0x2000000;
59 _HEAP_MAX = .;
11dd4e37
BS
60 }
61 .stack :
62 {
63 . += 0x100000;
64 _STACK_START = .;
65 }"
ac145307 66 ;;
16c1c9d6
CG
67 esac
68fi
75fa6dc1 69ATTRS_SECTIONS='.c6xabi.attributes 0 : { KEEP (*(.c6xabi.attributes)) KEEP (*(.gnu.attributes)) }'
This page took 0.44189 seconds and 4 git commands to generate.