Downgrade powerpc register error to warning
[deliverable/binutils-gdb.git] / ld / emulparams / shelf.sh
CommitLineData
465bc359 1# If you change this file, please also look at files which source this one:
8d05742f 2# shlelf.sh, shelf_nbsd.sh
465bc359 3
252b5132
RH
4SCRIPT_NAME=elf
5OUTPUT_FORMAT="elf32-sh"
485cf679 6NO_REL_RELOCS=yes
252b5132
RH
7TEXT_START_ADDR=0x1000
8MAXPAGESIZE=128
9ARCH=sh
10MACHINE=
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
252b5132
RH
17
18# These are for compatibility with the COFF toolchain.
19ENTRY=start
20CTOR_START='___ctors = .;'
21CTOR_END='___ctors_end = .;'
22DTOR_START='___dtors = .;'
23DTOR_END='___dtors_end = .;'
417a667c 24# This is like setting STACK_ADDR to 0x3FFFFF00, except that the setting can
164c4054
JR
25# be overridden, e.g. --defsym _stack=0x0f00, and that we put an extra
26# sentinal value at the bottom.
27# N.B. We can't use PROVIDE to set the default value in a symbol because
28# the address is needed to place the .stack section, which in turn is needed
29# to hold the sentinel value(s).
417a667c 30test -z "$CREATE_SHLIB" && OTHER_SECTIONS=" .stack ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : 0x3FFFFF00)} :
164c4054
JR
31 {
32 ${RELOCATING+_stack = .;}
33 *(.stack)
34 LONG(0xdeaddead)
35 }"
8a1cb159
KK
36# We do not need .stack for shared library.
37test -n "$CREATE_SHLIB" && OTHER_SECTIONS=""
This page took 0.744092 seconds and 4 git commands to generate.