* ld-powerpc/tlsexe32.d: Update for changed symbols from objdump.
[deliverable/binutils-gdb.git] / ld / emulparams / shlelf32_linux.sh
CommitLineData
a2b3c630
SC
1# If you change this file, please also look at files which source this one:
2# shelf32_linux.sh
3
4SCRIPT_NAME=elf
5OUTPUT_FORMAT="elf32-sh64-linux"
6TEXT_START_ADDR=0x400000
7MAXPAGESIZE=0x10000
8ARCH=sh
9MACHINE=sh5
10ALIGNMENT=8
11TEMPLATE_NAME=elf32
12GENERATE_SHLIB_SCRIPT=yes
308f753f 13GENERATE_PIE_SCRIPT=yes
a2b3c630
SC
14
15
16DATA_START_SYMBOLS='PROVIDE (___data = .);'
17
18# If data is located right after .text (not explicitly specified),
19# then we need to align it to an 8-byte boundary.
20OTHER_READONLY_SECTIONS='
21PROVIDE (___rodata = DEFINED (.rodata) ? .rodata : 0);
22. = ALIGN (8);
23'
24
25# Make _edata and .bss aligned by smuggling in an alignment directive.
26OTHER_GOT_SECTIONS='. = ALIGN (8);'
27
28CTOR_START='___ctors = .;'
29CTOR_END='___ctors_end = .;'
30DTOR_START='___dtors = .;'
31DTOR_END='___dtors_end = .;'
32
33# Do not use the varname=${varname-'string'} construct here; there are
34# problems with that on some shells (e.g. on Solaris) where there is a bug
35# that trigs when $varname contains a "}".
36test -z "$OTHER_RELOCATING_SECTIONS" && OTHER_RELOCATING_SECTIONS='
37 .cranges 0 : { *(.cranges) }
38'
39
40# We need to adjust sizes in the .cranges section after relaxation, so
41# we need an after_allocation function, and it goes in this file.
42EXTRA_EM_FILE=${EXTRA_EM_FILE-sh64elf}
This page took 0.072637 seconds and 4 git commands to generate.