Move .stack before debug sections
[binutils-gdb.git] / ld / emulparams / shelf.sh
1 # If you change this file, please also look at files which source this one:
2 # shlelf.sh, shelf_nbsd.sh
3
4 SCRIPT_NAME=elf
5 OUTPUT_FORMAT="elf32-sh"
6 NO_REL_RELOCS=yes
7 TEXT_START_ADDR=0x1000
8 MAXPAGESIZE=128
9 ARCH=sh
10 MACHINE=
11 TEMPLATE_NAME=elf32
12 GENERATE_SHLIB_SCRIPT=yes
13 EMBEDDED=yes
14 # PR 17739. Delay checking relocs until after all files have
15 # been opened and linker garbage collection has taken place.
16 CHECK_RELOCS_AFTER_OPEN_INPUT=yes
17
18 # These are for compatibility with the COFF toolchain.
19 ENTRY=start
20 CTOR_START='___ctors = .;'
21 CTOR_END='___ctors_end = .;'
22 DTOR_START='___dtors = .;'
23 DTOR_END='___dtors_end = .;'
24 STACK_ADDR="(DEFINED(_stack) ? _stack : 0x3FFFFF00)"
25 STACK_SENTINEL="LONG(0xdeaddead)"
26 # We do not need .stack for shared library.
27 test -n "$CREATE_SHLIB" && unset STACK_ADDR