Update DF_1_XXX from Solaris
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Nov 2012 12:49:20 +0000 (12:49 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 16 Nov 2012 12:49:20 +0000 (12:49 +0000)
binutils/

* readelf.c (process_dynamic_section): Correct DF_1_CONFALT.
Also dump DF_1_ENDFILTEE, DF_1_DISPRELDNE, DF_1_NODIRECT,
DF_1_IGNMULDEF, DF_1_NOKSYMS, DF_1_NOHDR, DF_1_EDITED,
DF_1_NORELOC, DF_1_SYMINTPOSE, DF_1_GLOBAUDIT and DF_1_SINGLETON.

include/elf/

* common.h (DF_1_CONLFAT): Renamed to ...
(DF_1_CONFALT): This.
(DF_1_ENDFILTEE): New.
(DF_1_DISPRELDNE): Likewise.
(DF_1_DISPRELPND): Likewise.
(DF_1_NODIRECT): Likewise.
(DF_1_IGNMULDEF): Likewise.
(DF_1_NOKSYMS): Likewise.
(DF_1_NOHDR): Likewise.
(DF_1_EDITED): Likewise.
(DF_1_NORELOC): Likewise.
(DF_1_SYMINTPOSE): Likewise.
(DF_1_GLOBAUDIT): Likewise.
(DF_1_SINGLETON): Likewise.

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

index 23f84093fc94842f8c85f511c7b82bda769b534f..a763235f142739711a9df35c6f3e5fe0cb460897 100644 (file)
@@ -1,3 +1,10 @@
+2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * readelf.c (process_dynamic_section): Correct DF_1_CONFALT.
+       Also dump DF_1_ENDFILTEE, DF_1_DISPRELDNE, DF_1_NODIRECT,
+       DF_1_IGNMULDEF, DF_1_NOKSYMS, DF_1_NOHDR, DF_1_EDITED,
+       DF_1_NORELOC, DF_1_SYMINTPOSE, DF_1_GLOBAUDIT and DF_1_SINGLETON.
+
 2012-11-14  Tristan Gingold  <gingold@adacore.com>
 
        * od-macho.c (bfd_mach_o_load_command_name): Add new definitions.
index f246211caec46ebd8d6a85d483764b69ef28d003..78775390a05c6f92945223b670e85dc3eb95549e 100644 (file)
@@ -8110,10 +8110,70 @@ process_dynamic_section (FILE * file)
                      printf (" NODUMP");
                      val ^= DF_1_NODUMP;
                    }
-                 if (val & DF_1_CONLFAT)
+                 if (val & DF_1_CONFALT)
                    {
-                     printf (" CONLFAT");
-                     val ^= DF_1_CONLFAT;
+                     printf (" CONFALT");
+                     val ^= DF_1_CONFALT;
+                   }
+                 if (val & DF_1_ENDFILTEE)
+                   {
+                     printf (" ENDFILTEE");
+                     val ^= DF_1_ENDFILTEE;
+                   }
+                 if (val & DF_1_DISPRELDNE)
+                   {
+                     printf (" DISPRELDNE");
+                     val ^= DF_1_DISPRELDNE;
+                   }
+                 if (val & DF_1_DISPRELPND)
+                   {
+                     printf (" DISPRELPND");
+                     val ^= DF_1_DISPRELPND;
+                   }
+                 if (val & DF_1_NODIRECT)
+                   {
+                     printf (" NODIRECT");
+                     val ^= DF_1_NODIRECT;
+                   }
+                 if (val & DF_1_IGNMULDEF)
+                   {
+                     printf (" IGNMULDEF");
+                     val ^= DF_1_IGNMULDEF;
+                   }
+                 if (val & DF_1_NOKSYMS)
+                   {
+                     printf (" NOKSYMS");
+                     val ^= DF_1_NOKSYMS;
+                   }
+                 if (val & DF_1_NOHDR)
+                   {
+                     printf (" NOHDR");
+                     val ^= DF_1_NOHDR;
+                   }
+                 if (val & DF_1_EDITED)
+                   {
+                     printf (" EDITED");
+                     val ^= DF_1_EDITED;
+                   }
+                 if (val & DF_1_NORELOC)
+                   {
+                     printf (" NORELOC");
+                     val ^= DF_1_NORELOC;
+                   }
+                 if (val & DF_1_SYMINTPOSE)
+                   {
+                     printf (" SYMINTPOSE");
+                     val ^= DF_1_SYMINTPOSE;
+                   }
+                 if (val & DF_1_GLOBAUDIT)
+                   {
+                     printf (" GLOBAUDIT");
+                     val ^= DF_1_GLOBAUDIT;
+                   }
+                 if (val & DF_1_SINGLETON)
+                   {
+                     printf (" SINGLETON");
+                     val ^= DF_1_SINGLETON;
                    }
                  if (val != 0)
                    printf (" %lx", val);
index 88e72c26aaf3312799c6cd9c4904aeb1c5b7103d..53fb3eff45ee19b61ab7714ecc4ca1e52e0409f5 100644 (file)
@@ -1,3 +1,20 @@
+2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * common.h (DF_1_CONLFAT): Renamed to ...
+       (DF_1_CONFALT): This.
+       (DF_1_ENDFILTEE): New.
+       (DF_1_DISPRELDNE): Likewise.
+       (DF_1_DISPRELPND): Likewise.
+       (DF_1_NODIRECT): Likewise.
+       (DF_1_IGNMULDEF): Likewise.
+       (DF_1_NOKSYMS): Likewise.
+       (DF_1_NOHDR): Likewise.
+       (DF_1_EDITED): Likewise.
+       (DF_1_NORELOC): Likewise.
+       (DF_1_SYMINTPOSE): Likewise.
+       (DF_1_GLOBAUDIT): Likewise.
+       (DF_1_SINGLETON): Likewise.
+
 2012-11-09  Nick Clifton  <nickc@redhat.com>
 
        * rx.h (EF_RX_CPU_RX): Add comment.
index 244e27fde2d776436b632dfac57ee3d439430501..4399d0285e51c834de066ae0985606229772c179 100644 (file)
 #define DF_1_INTERPOSE 0x00000400
 #define DF_1_NODEFLIB  0x00000800
 #define DF_1_NODUMP    0x00001000
-#define DF_1_CONLFAT   0x00002000
+#define DF_1_CONFALT   0x00002000
+#define DF_1_ENDFILTEE 0x00004000
+#define        DF_1_DISPRELDNE 0x00008000
+#define        DF_1_DISPRELPND 0x00010000
+#define        DF_1_NODIRECT   0x00020000
+#define        DF_1_IGNMULDEF  0x00040000
+#define        DF_1_NOKSYMS    0x00080000
+#define        DF_1_NOHDR      0x00100000
+#define        DF_1_EDITED     0x00200000
+#define        DF_1_NORELOC    0x00400000
+#define        DF_1_SYMINTPOSE 0x00800000
+#define        DF_1_GLOBAUDIT  0x01000000
+#define        DF_1_SINGLETON  0x02000000
 
 /* Flag values for the DT_FLAGS entry. */
 #define DF_ORIGIN      (1 << 0)