mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
5c383f0262
include/elf: * common.h (DF_1_STUB, DF_1_PIE): Define. ld: * emulparams/solaris2.sh (GENERATE_PIE_SCRIPT): Set to yes. * emultempl/elf32.em: Include ldlex.h. (gld${EMULATION_NAME}_handle_option) [GENERATE_PIE_SCRIPT] <OPTION_PIE>: Set DF_1_PIE. binutils: * readelf.c (process_dynamic_section): Handle DF_1_STUB, DF_1_PIE.
13 lines
512 B
Bash
13 lines
512 B
Bash
# If you change this file, please also look at files which source this one:
|
|
# elf32_sparc_sol2.sh, elf64_sparc_sol2.sh, elf_i386_sol2.sh,
|
|
# elf_x86_64_sol2.sh.
|
|
|
|
# The Solaris 2 ABI requires that two local symbols are present in every
|
|
# executable and shared object.
|
|
# Cf. Linker and Libraries Guide, Ch. 2, Link-Editor, Generating the Output
|
|
# File, p.63.
|
|
TEXT_START_SYMBOLS='_START_ = .;'
|
|
OTHER_END_SYMBOLS='_END_ = .;'
|
|
# Beginning with Solaris 11.x and Solaris 12, there's PIE support.
|
|
GENERATE_PIE_SCRIPT=yes
|