binutils-gdb/ld/emulparams/armelf_linux_eabi.sh
Alan Modra 6e9ed99753 PR25243, static linking with exceptions and iostream is broken on ARM
PR 25243
	* emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Move definition
	of __exidx_start and __exidx_end into ARM.exidx.
	* emulparams/armelf_linux_eabi.sh (OTHER_READONLY_SECTIONS): Likewise.
	* emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Similarly.
	* emulparams/elf32_tic6x_le.sh (OTHER_READONLY_SECTIONS): Similarly.
	* emulparams/armelf_fuchsia.sh: Source armelf_linux_eabi.sh,
	just redefining TEXT_START_ADDR.
	* emulparams/armelf_linux_fdpiceabi.sh: Source armelf_linux_eabi.sh,
	adding to OTHER_READONLY_SECTIONS.
2019-12-05 17:35:13 +10:30

12 lines
434 B
Bash

source_sh ${srcdir}/emulparams/armelf_linux.sh
# Use the ARM ABI-compliant exception-handling sections.
OTHER_READONLY_SECTIONS="
.ARM.extab ${RELOCATING-0} : { *(.ARM.extab${RELOCATING+* .gnu.linkonce.armextab.*}) }
.ARM.exidx ${RELOCATING-0} :
{
${RELOCATING+PROVIDE_HIDDEN (__exidx_start = .);}
*(.ARM.exidx${RELOCATING+* .gnu.linkonce.armexidx.*})
${RELOCATING+PROVIDE_HIDDEN (__exidx_end = .);}
}"