diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2015-09-22 11:12:51 +0200 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2015-09-22 11:12:51 +0200 |
commit | 5c383f026242d25a3c21fdfda42e5ca218b346c8 (patch) | |
tree | d854510497f70338583a6b6c6ca22abb91d9279b /include | |
parent | 6dca4fd141fd0b9fe0ea662295833b8ed43cb4e8 (diff) | |
download | gdb-5c383f026242d25a3c21fdfda42e5ca218b346c8.zip gdb-5c383f026242d25a3c21fdfda42e5ca218b346c8.tar.gz gdb-5c383f026242d25a3c21fdfda42e5ca218b346c8.tar.bz2 |
Solaris PIE support
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/elf/ChangeLog | 4 | ||||
-rw-r--r-- | include/elf/common.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 47d6bad..8e6bb44 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,7 @@ +2015-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * common.h (DF_1_STUB, DF_1_PIE): Define. + 2015-09-21 H.J. Lu <hongjiu.lu@intel.com> * external.h (Elf64_External_Chdr): Change ch_type to 4 bytes diff --git a/include/elf/common.h b/include/elf/common.h index e6d8c14..fbf1f3c 100644 --- a/include/elf/common.h +++ b/include/elf/common.h @@ -867,6 +867,8 @@ #define DF_1_SYMINTPOSE 0x00800000 #define DF_1_GLOBAUDIT 0x01000000 #define DF_1_SINGLETON 0x02000000 +#define DF_1_STUB 0x04000000 +#define DF_1_PIE 0x08000000 /* Flag values for the DT_FLAGS entry. */ #define DF_ORIGIN (1 << 0) |