229fcec570
* elf.c (_bfd_elf_make_dynamic_segment): New function, split out from ... (map_sections_to_segments): ... here. Use it. Assign a file position to the .dynamic section if it is not loadable, but part of the PT_DYNAMIC segment. * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file offsets, not VMAs, for the BPABI. Do not fill in the header in the .got.plt section for the BPABI. * elfarm-nabi.c (elf32_arm_symbian_modify_segment_map): Add a PT_DYNAMIC segment. (elf_backend_want_got_plt): Define to zero for Symbian OS. * emulparams/armsymbian.sh: Use armbpabi script. * scripttempl/armbpabi.sc: New script.
12 lines
385 B
Bash
12 lines
385 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"
|
|
|
|
# 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
|