diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-03-21 12:55:40 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-03-21 12:55:52 -0700 |
commit | b1202ffa53484b65d95787fddef1bc6175e05ca9 (patch) | |
tree | 95cafc240834299c25befdb5ebb0d01a8e152b45 /binutils | |
parent | ce29f8439f94adfa56655940e657afbe07a0c99e (diff) | |
download | fsf-binutils-gdb-b1202ffa53484b65d95787fddef1bc6175e05ca9.zip fsf-binutils-gdb-b1202ffa53484b65d95787fddef1bc6175e05ca9.tar.gz fsf-binutils-gdb-b1202ffa53484b65d95787fddef1bc6175e05ca9.tar.bz2 |
DT_FLAGS_1: Add Solaris bits
The following bits in DT_FLAGS_1 are used by Solaris:
#define DF_1_KMOD 0x10000000 /* kernel module */
#define DF_1_WEAKFILTER 0x20000000 /* apply weak binding to DT_FILTER */
#define DF_1_NOCOMMON 0x40000000 /* no COMMON symbols exist */
binutils/
* readelf.c (process_dynamic_section): Also dump DF_1_KMOD,
DF_1_WEAKFILTER and DF_1_NOCOMMON.
include/
* elf/common.h (DF_1_KMOD): New.
(DF_1_WEAKFILTER): Likewise.
(DF_1_NOCOMMON): Likewise.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 100942e..cb4e3be 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2018-03-21 H.J. Lu <hongjiu.lu@intel.com> + + * readelf.c (process_dynamic_section): Also dump DF_1_KMOD, + DF_1_WEAKFILTER and DF_1_NOCOMMON. + 2018-03-20 Nick Clifton <nickc@redhat.com> * po/es.po: Updated Spanish translation. diff --git a/binutils/readelf.c b/binutils/readelf.c index b85db9f..d0bd679 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -10009,6 +10009,21 @@ process_dynamic_section (Filedata * filedata) printf (" PIE"); val ^= DF_1_PIE; } + if (val & DF_1_KMOD) + { + printf (" KMOD"); + val ^= DF_1_KMOD; + } + if (val & DF_1_WEAKFILTER) + { + printf (" WEAKFILTER"); + val ^= DF_1_WEAKFILTER; + } + if (val & DF_1_NOCOMMON) + { + printf (" NOCOMMON"); + val ^= DF_1_NOCOMMON; + } if (val != 0) printf (" %lx", val); puts (""); |