DT_FLAGS_1: Add Solaris bits
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 21 Mar 2018 19:55:40 +0000 (12:55 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 21 Mar 2018 19:55:52 +0000 (12:55 -0700)
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.

binutils/ChangeLog
binutils/readelf.c
include/ChangeLog
include/elf/common.h

index 100942ee8935ef231a0cb0c26fde6d6a1973cfb5..cb4e3beac021686d2edf257db8301209cb6583bb 100644 (file)
@@ -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.
index b85db9f97cef6893376effd33514c96dd53bf2ac..d0bd6790328ffbac74acf7ed1191a0fb5db4136a 100644 (file)
@@ -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 ("");
index 82e29fe386d797eb67ba557ec4880b171b470c89..448c6e31d8a364376db101b2573ef7012896da3a 100644 (file)
@@ -1,3 +1,9 @@
+2018-03-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf/common.h (DF_1_KMOD): New.
+       (DF_1_WEAKFILTER): Likewise.
+       (DF_1_NOCOMMON): Likewise.
+
 2018-03-14  Kito Cheng  <kito.cheng@gmail.com>
 
        * opcode/riscv.h (OP_MASK_FUNCT3): New.
index 61a1ca7c1e99ba10d73f67cf453f6e0c4c870eda..f4354721bf5d2a7794dd6bb6c53a66d851288e10 100644 (file)
 #define        DF_1_SINGLETON  0x02000000
 #define        DF_1_STUB       0x04000000
 #define        DF_1_PIE        0x08000000
+#define        DF_1_KMOD       0x10000000
+#define        DF_1_WEAKFILTER 0x20000000
+#define        DF_1_NOCOMMON   0x40000000
 
 /* Flag values for the DT_FLAGS entry. */
 #define DF_ORIGIN      (1 << 0)