[PATCH] Add Mips specific dynamic table entry tags.

Simon Atanasyan simon at atanasyan.com
Tue May 28 06:42:37 PDT 2013


Hi rafael,

The patch adds Mips specific dynamic table entry tags. The change is trivial. I'm just not sure where to put new DT_MIPS_xxx flags: into the separate enumeration (as in the patch) or into the main DT_xxx enumeration.

http://llvm-reviews.chandlerc.com/D878

Files:
  include/llvm/Support/ELF.h

Index: include/llvm/Support/ELF.h
===================================================================
--- include/llvm/Support/ELF.h
+++ include/llvm/Support/ELF.h
@@ -1479,22 +1479,6 @@
   DT_VERNEEDNUM   = 0X6FFFFFFF  // The number of entries in DT_VERNEED.
 };
 
-// Mips specific dynamic table entry tags.
-enum {
-  DT_MIPS_RLD_VERSION   = 0x70000001, // 32 bit version number for runtime
-                                      // linker interface.
-  DT_MIPS_FLAGS         = 0x70000005, // 32 bits of flags.
-  DT_MIPS_BASE_ADDRESS  = 0x70000006, // Base address of the segment.
-  DT_MIPS_LOCAL_GOTNO   = 0x7000000a, // Number of local global offset
-                                      // table entries.
-  DT_MIPS_SYMTABNO      = 0x70000011, // Number of entries in the .dynsym
-                                      // section.
-  DT_MIPS_GOTSYM        = 0x70000013, // Index of first dynamic symbol
-                                      // in global offset table.
-  DT_MIPS_PLTGOT        = 0x70000032, // Address of the base of the PLTGOT.
-  DT_MIPS_RWPLT         = 0x70000034  // Points to the base of a writable PLT.
-};
-
 // DT_FLAGS values.
 enum {
   DF_ORIGIN     = 0x01, // The object may reference $ORIGIN.
@@ -1525,13 +1509,6 @@
   DF_1_DISPRELPND = 0x00010000  // Disp reloc applied at run-time.
 };
 
-// DT_MIPS_FLAGS values.
-enum {
-  RHF_NONE        = 0x00000000, // No flags.
-  RHF_QUICKSTART  = 0x00000001, // Uses shortcut pointers.
-  RHF_NOTPOT      = 0x00000002  // Hash size is not a power of two.
-};
-
 // ElfXX_VerDef structure version (GNU versioning)
 enum {
   VER_DEF_NONE    = 0,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D878.1.patch
Type: text/x-patch
Size: 1628 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130528/8883a641/attachment.bin>


More information about the llvm-commits mailing list