]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/emulparams/elf32_tic6x_le.sh
include/elf/
[thirdparty/binutils-gdb.git] / ld / emulparams / elf32_tic6x_le.sh
CommitLineData
40b36596
JM
1SCRIPT_NAME=elf
2TEMPLATE_NAME=elf32
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} : {
18 *(.dsbt)
19 *(.got.plt) *(.igot.plt) *(.got) *(.igot)
20}"
21 ;;
22esac
40b36596
JM
23MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
24ARCH=tic6x
25EXECUTABLE_SYMBOLS="EXTERN (__c6xabi_DSBT_BASE);"
ac145307 26OTHER_GOT_SYMBOLS="PROVIDE_HIDDEN (__c6xabi_DSBT_BASE = .);"
40b36596
JM
27# ".bss" is near (small) BSS, ".far" is far (normal) BSS, ".const" is
28# far read-only data, ".rodata" is near read-only data. ".neardata"
29# is near (small) data, ".fardata" is (along with .data) far data.
30RODATA_NAME="const"
31SDATA_NAME="neardata"
32SBSS_NAME="bss"
33BSS_NAME="far"
34OTHER_SDATA_SECTIONS=".rodata ${RELOCATING-0} : { *(.rodata${RELOCATING+ .rodata.*}) }"
35OTHER_READONLY_RELOC_SECTIONS="
36 .rel.rodata ${RELOCATING-0} : { *(.rel.rodata${RELOCATING+ .rel.rodata.*}) }
37 .rela.rodata ${RELOCATING-0} : { *(.rela.rodata${RELOCATING+ .rela.rodata.*}) }"
38OTHER_READWRITE_SECTIONS=".fardata ${RELOCATING-0} : { *(.fardata${RELOCATING+ .fardata.*}) }"
39OTHER_READWRITE_RELOC_SECTIONS="
40 .rel.fardata ${RELOCATING-0} : { *(.rel.fardata${RELOCATING+ .rel.fardata.*}) }
41 .rela.fardata ${RELOCATING-0} : { *(.rela.fardata${RELOCATING+ .rela.fardata.*}) }"
ac145307
BS
42case ${target} in
43 *-elf)
44 OTHER_BSS_SECTIONS="
11dd4e37
BS
45 .heap :
46 {
47 . = ALIGN(4);
48 _HEAP_START = .;
49 . += 0x2000000;
50 _HEAP_MAX = .;
51 }
52 .stack :
53 {
54 . += 0x100000;
55 _STACK_START = .;
56 }"
ac145307
BS
57 ;;
58esac
75fa6dc1 59ATTRS_SECTIONS='.c6xabi.attributes 0 : { KEEP (*(.c6xabi.attributes)) KEEP (*(.gnu.attributes)) }'