mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
74dc9032e7
PR 20199 * emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL rather than using OTHER_SECTIONS. * emulparams/elf32mt.sh: Likewise. * emulparams/elf32rx.sh: Likewise. * emulparams/elf32rl78.sh: Likewise. Use OTHER_SYMBOLS to define __rl78_abs__. * emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL rather than using OTHER_SECTIONS. * emulparams/shelf32.sh: Likewise. Use OTHER_SECTIONS for .cranges. * emulparams/shelf64.sh: Unset OTHER_SECTIONS. * emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS. * emulparams/shelf_uclinux.sh: Likewise. * emulparams/shlsymbian.sh: Unset STACK_ADDR. Use OTHER_SYMBOLS to define _stack, not OTHER_SECTIONS. * scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and TINY_BSS_SECTION before debug sections. Add STACK_SENTINEL. * scripttempl/arclinux.sc: Likewise. * scripttempl/elf64hppa.sc: Likewise. * scripttempl/elfxtensa.sc: Likewise. * scripttempl/nds32elf.sc: Likewise. * scripttempl/armbpabi.sc: Move STACK before debug sections. * scripttempl/elf_chaos.sc: Likewise. * scripttempl/elfarc.sc: Delete STACK. * scripttempl/epiphany_4x4.sc: Delete STACK. Move TINY_DATA_SECTION, TINY_BSS_SECTION, and .stack before debug sections.
28 lines
790 B
Bash
28 lines
790 B
Bash
# If you change this file, please also look at files which source this one:
|
|
# shlelf.sh, shelf_nbsd.sh
|
|
|
|
SCRIPT_NAME=elf
|
|
OUTPUT_FORMAT="elf32-sh"
|
|
NO_REL_RELOCS=yes
|
|
TEXT_START_ADDR=0x1000
|
|
MAXPAGESIZE=128
|
|
ARCH=sh
|
|
MACHINE=
|
|
TEMPLATE_NAME=elf32
|
|
GENERATE_SHLIB_SCRIPT=yes
|
|
EMBEDDED=yes
|
|
# PR 17739. Delay checking relocs until after all files have
|
|
# been opened and linker garbage collection has taken place.
|
|
CHECK_RELOCS_AFTER_OPEN_INPUT=yes
|
|
|
|
# These are for compatibility with the COFF toolchain.
|
|
ENTRY=start
|
|
CTOR_START='___ctors = .;'
|
|
CTOR_END='___ctors_end = .;'
|
|
DTOR_START='___dtors = .;'
|
|
DTOR_END='___dtors_end = .;'
|
|
STACK_ADDR="(DEFINED(_stack) ? _stack : 0x3FFFFF00)"
|
|
STACK_SENTINEL="LONG(0xdeaddead)"
|
|
# We do not need .stack for shared library.
|
|
test -n "$CREATE_SHLIB" && unset STACK_ADDR
|