aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2015-09-22 11:12:51 +0200
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2015-09-22 11:12:51 +0200
commit5c383f026242d25a3c21fdfda42e5ca218b346c8 (patch)
treed854510497f70338583a6b6c6ca22abb91d9279b /binutils
parent6dca4fd141fd0b9fe0ea662295833b8ed43cb4e8 (diff)
downloadgdb-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 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/readelf.c10
2 files changed, 14 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 1e1ccd4..13f2166 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2015-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * readelf.c (process_dynamic_section): Handle DF_1_STUB, DF_1_PIE.
+
2015-09-10 Erik Ackermann <kurterikackermann@gmail.com>
* strings.c: Add -s/--output-separator option to specify custom
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 12fb415..4d19e6f 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -9241,6 +9241,16 @@ process_dynamic_section (FILE * file)
printf (" SINGLETON");
val ^= DF_1_SINGLETON;
}
+ if (val & DF_1_STUB)
+ {
+ printf (" STUB");
+ val ^= DF_1_STUB;
+ }
+ if (val & DF_1_PIE)
+ {
+ printf (" PIE");
+ val ^= DF_1_PIE;
+ }
if (val != 0)
printf (" %lx", val);
puts ("");