mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
dc4c9c199b
SymbianOS. * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so as to include .ARM.exidx$${Base,Limit}. * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment. Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}. Put .init_array, .fini_array, etc. into the read-only data segment.
26 lines
942 B
Bash
26 lines
942 B
Bash
. ${srcdir}/emulparams/armelf.sh
|
|
SCRIPT_NAME="armbpabi"
|
|
GENERATE_COMBRELOC_SCRIPT=1
|
|
OUTPUT_FORMAT="elf32-littlearm-symbian"
|
|
BIG_OUTPUT_FORMAT="elf32-bigarm-symbian"
|
|
LITTLE_OUTPUT_FORMAT="$OUTPUT_FORMAT"
|
|
TARGET1_IS_REL=1
|
|
TARGET2_TYPE=abs
|
|
# On BPABI systems, program headers should not be mapped.
|
|
EMBEDDED=yes
|
|
|
|
# As for armelf.sh, but add the SymbianOS-specific
|
|
# .ARM.exidx$${Base,Limit} symbols.
|
|
OTHER_READONLY_SECTIONS="
|
|
.ARM.extab ${RELOCATING-0} : { *(.ARM.extab${RELOCATING+* .gnu.linkonce.armextab.*}) }
|
|
${RELOCATING+ .ARM.exidx\$\$Base = . ; }
|
|
${RELOCATING+ __exidx_start = .; }
|
|
.ARM.exidx ${RELOCATING-0} : { *(.ARM.exidx${RELOCATING+* .gnu.linkonce.armexidx.*}) }
|
|
${RELOCATING+ __exidx_end = .; }
|
|
${RELOCATING+ .ARM.exidx\$\$Limit = . ; }"
|
|
|
|
# This value should match ELF_MAXPAGESIZE in BFD. Otherwise, elf.c
|
|
# will not place read-write sections in a separate ELF segment from
|
|
# the read-only sections.
|
|
MAXPAGESIZE=0x8000
|