diff options
author | Alan Modra <amodra@gmail.com> | 2017-02-20 13:25:13 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-02-20 19:33:28 +1030 |
commit | 74dc9032e79b7950095ee5f94f5517209ef4747e (patch) | |
tree | 4cd2fe2d3c2216cb646a0c02d591f7461d62efd4 /ld/scripttempl/elfxtensa.sc | |
parent | ece5dcc1c00a48ecf63eae71983d04270cef4280 (diff) | |
download | fsf-binutils-gdb-74dc9032e79b7950095ee5f94f5517209ef4747e.zip fsf-binutils-gdb-74dc9032e79b7950095ee5f94f5517209ef4747e.tar.gz fsf-binutils-gdb-74dc9032e79b7950095ee5f94f5517209ef4747e.tar.bz2 |
Move .stack before debug sections
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.
Diffstat (limited to 'ld/scripttempl/elfxtensa.sc')
-rw-r--r-- | ld/scripttempl/elfxtensa.sc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ld/scripttempl/elfxtensa.sc b/ld/scripttempl/elfxtensa.sc index 6eb9d33..769168e 100644 --- a/ld/scripttempl/elfxtensa.sc +++ b/ld/scripttempl/elfxtensa.sc @@ -272,10 +272,11 @@ DTOR=".dtors ${CONSTRUCTING-0} : KEEP (*(.dtors)) ${CONSTRUCTING+${DTOR_END}} }" -STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} : +STACK=".stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} : { - ${RELOCATING+_stack = .;} + ${RELOCATING+${USER_LABEL_PREFIX}_stack = .;} *(.stack) + ${RELOCATING+${STACK_SENTINEL}} }" # If this is for an embedded system, don't add SIZEOF_HEADERS. @@ -523,6 +524,9 @@ cat <<EOF ${RELOCATING+${OTHER_END_SYMBOLS}} ${RELOCATING+${END_SYMBOLS-${USER_LABEL_PREFIX}_end = .; PROVIDE (${USER_LABEL_PREFIX}end = .);}} ${RELOCATING+${DATA_SEGMENT_END}} + ${TINY_DATA_SECTION} + ${TINY_BSS_SECTION} + ${STACK_ADDR+${STACK}} EOF if test -n "${NON_ALLOC_DYN}"; then @@ -555,10 +559,6 @@ EOF . $srcdir/scripttempl/DWARF.sc cat <<EOF - ${TINY_DATA_SECTION} - ${TINY_BSS_SECTION} - - ${STACK_ADDR+${STACK}} ${ATTRS_SECTIONS} ${OTHER_SECTIONS} ${RELOCATING+${OTHER_SYMBOLS}} |