[PATCH] Add Mips specific dynamic table entry tags.

Simon Atanasyan simon at atanasyan.com
Tue May 28 06:49:00 PDT 2013


  The patch has been fixed to show difference correctly.

Hi rafael,

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

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D878?vs=2156&id=2158#toc

Files:
  include/llvm/Support/ELF.h

Index: include/llvm/Support/ELF.h
===================================================================
--- include/llvm/Support/ELF.h
+++ include/llvm/Support/ELF.h
@@ -1479,6 +1479,22 @@
   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.
@@ -1509,6 +1525,13 @@
   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.2.patch
Type: text/x-patch
Size: 1628 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130528/4e2b3e26/attachment.bin>


More information about the llvm-commits mailing list