Move .stack before debug sections
[deliverable/binutils-gdb.git] / ld / emulparams / shelf32.sh
CommitLineData
2d92cb7d
AO
1# Note: this parameter script is sourced by the other
2# sh[l]elf(32|64).sh parameter scripts.
3SCRIPT_NAME=elf
4OUTPUT_FORMAT=${OUTPUT_FORMAT-"elf32-sh64"}
485cf679 5NO_REL_RELOCS=yes
2d92cb7d 6TEXT_START_ADDR=0x1000
2d92cb7d
AO
7MAXPAGESIZE=128
8ARCH=sh
a44d7f9c 9MACHINE=sh5
2d92cb7d
AO
10ALIGNMENT=8
11TEMPLATE_NAME=elf32
12GENERATE_SHLIB_SCRIPT=yes
13EMBEDDED=yes
a94d834c
NC
14# PR 17739. Delay checking relocs until after all files have
15# been opened and linker garbage collection has taken place.
16CHECK_RELOCS_AFTER_OPEN_INPUT=yes
2d92cb7d
AO
17
18DATA_START_SYMBOLS='PROVIDE (___data = .);'
19
20# If data is located right after .text (not explicitly specified),
21# then we need to align it to an 8-byte boundary.
22OTHER_READONLY_SECTIONS='
23PROVIDE (___rodata = DEFINED (.rodata) ? .rodata : 0);
24. = ALIGN (8);
25'
26
27# Make _edata and .bss aligned by smuggling in an alignment directive.
28OTHER_GOT_SECTIONS='. = ALIGN (8);'
29
30# These are for compatibility with the COFF toolchain.
31ENTRY=start
32CTOR_START='___ctors = .;'
33CTOR_END='___ctors_end = .;'
34DTOR_START='___dtors = .;'
35DTOR_END='___dtors_end = .;'
36
74dc9032
AM
37STACK_ADDR="(DEFINED(_stack) ? _stack : ALIGN (0x40000) + 0x80000)"
38STACK_SENTINEL="LONG(0xdeaddead)"
8a1cb159 39# We do not need .stack for shared library.
74dc9032
AM
40test -n "$CREATE_SHLIB" && unset STACK_ADDR
41
42OTHER_SECTIONS=".cranges 0 : { *(.cranges) }"
2d92cb7d
AO
43
44# We need to adjust sizes in the .cranges section after relaxation, so
45# we need an after_allocation function, and it goes in this file.
46EXTRA_EM_FILE=${EXTRA_EM_FILE-sh64elf}
This page took 0.699827 seconds and 4 git commands to generate.