Fix ld --gc-section segfault with ARMv8-M entry function in absolute section
[deliverable/binutils-gdb.git] / ld / emulparams / elf32rl78.sh
CommitLineData
99c513f6
DD
1MACHINE=
2SCRIPT_NAME=elf
3OUTPUT_FORMAT="elf32-rl78"
4# See also `include/elf/rl78.h'
5TEXT_START_ADDR=0x00000
6ARCH=rl78
7ENTRY=_start
8EMBEDDED=yes
9TEMPLATE_NAME=elf32
10ELFSIZE=32
aff1a65e 11# EXTRA_EM_FILE=needrelax
99c513f6
DD
12MAXPAGESIZE=256
13# This is like setting STACK_ADDR to 0xffedc, except that the setting can
14# be overridden, e.g. --defsym _stack=0x0f00, and that we put an extra
15# sentinal value at the bottom.
16# N.B. We can't use PROVIDE to set the default value in a symbol because
17# the address is needed to place the .stack section, which in turn is needed
18# to hold the sentinel value(s).
19test -z "$CREATE_SHLIB" && OTHER_SECTIONS=" .stack ${RELOCATING-0}${RELOCATING+(DEFINED(__stack) ? __stack : 0xffedc)} :
20 {
21 ${RELOCATING+__stack = .;}
22 *(.stack)
23 LONG(0xdead)
aff1a65e
NC
24 }
25 ${RELOCATING+PROVIDE (__rl78_abs__ = 0);}"
99c513f6
DD
26# We do not need .stack for shared library.
27test -n "$CREATE_SHLIB" && OTHER_SECTIONS=""
This page took 0.267029 seconds and 4 git commands to generate.