[PATCH] [Support/ELF] Add missing DF_1_XXX bits

Davide Italiano dccitaliano at gmail.com
Sat May 23 15:22:26 PDT 2015


Hi echristo,

ELFDumper can't correctly decode DF_FLAGS_1.

e.g.

llvm-readobj -dynamic-table:
0x000000006FFFFFFB unknown

GNU readelf --dynamic:
0x000000006ffffffb (FLAGS_1)            Flags: NODUMP

This is the first of two patches to add support for decoding (which is needed by lld tests for "-z" option).
It adds the missing DF_1_XXX bits to Support/Elf. The next patch (which builds on top of this one) will take care of the llvm-readobj missing bits.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9955

Files:
  ELF.h

Index: ELF.h
===================================================================
--- ELF.h
+++ ELF.h
@@ -1168,7 +1168,16 @@
   DF_1_CONFALT    = 0x00002000, // Configuration alternative created.
   DF_1_ENDFILTEE  = 0x00004000, // Filtee terminates filters search.
   DF_1_DISPRELDNE = 0x00008000, // Disp reloc applied at build time.
-  DF_1_DISPRELPND = 0x00010000  // Disp reloc applied at run-time.
+  DF_1_DISPRELPND = 0x00010000, // Disp reloc applied at run-time.
+  DF_1_NODIRECT   = 0x00020000, // Object has no-direct binding.
+  DF_1_IGNMULDEF  = 0x00040000,
+  DF_1_NOKSYMS    = 0x00080000,
+  DF_1_NOHDR      = 0x00100000,
+  DF_1_EDITED     = 0x00200000, // Object is modified after built.
+  DF_1_NORELOC    = 0x00400000,
+  DF_1_SYMINTPOSE = 0x00800000, // Object has individual interposers.
+  DF_1_GLOBAUDIT  = 0x01000000, // Global auditing required.
+  DF_1_SINGLETON  = 0x02000000  // Singleton symbols are used.
 };
 
 // DT_MIPS_FLAGS values.

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9955.26371.patch
Type: text/x-patch
Size: 966 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150523/6c2b9a8d/attachment.bin>


More information about the llvm-commits mailing list