Skip to content
  1. Aug 06, 2013
  2. Jul 15, 2013
  3. Jun 19, 2013
  4. Jun 05, 2013
    • Rafael Espindola's avatar
      Handle relocations that don't point to symbols. · 806f0064
      Rafael Espindola authored
      In ELF (as in MachO), not all relocations point to symbols. Represent this
      properly by using a symbol_iterator instead of a SymbolRef. Update llvm-readobj
      ELF's dumper to handle relocatios without symbols.
      
      llvm-svn: 183284
      806f0064
  5. May 30, 2013
    • Rafael Espindola's avatar
      Change how we iterate over relocations on ELF. · 4f60a38f
      Rafael Espindola authored
      For COFF and MachO, sections semantically have relocations that apply to them.
      That is not the case on ELF.
      
      In relocatable objects (.o), a section with relocations in ELF has offsets to
      another section where the relocations should be applied.
      
      In dynamic objects and executables, relocations don't have an offset, they have
      a virtual address. The section sh_info may or may not point to another section,
      but that is not actually used for resolving the relocations.
      
      This patch exposes that in the ObjectFile API. It has the following advantages:
      
      * Most (all?) clients can handle this more efficiently. They will normally walk
      all relocations, so doing an effort to iterate in a particular order doesn't
      save time.
      
      * llvm-readobj now prints relocations in the same way the native readelf does.
      
      * probably most important, relocations that don't point to any section are now
      visible. This is the case of relocations in the rela.dyn section. See the
      updated relocation-executable.test for example.
      
      llvm-svn: 182908
      4f60a38f
    • Eric Christopher's avatar
      Reformat comments here. · 64ae44a0
      Eric Christopher authored
      llvm-svn: 182901
      64ae44a0
  6. May 09, 2013
  7. May 06, 2013
  8. Apr 25, 2013
    • Rafael Espindola's avatar
      Clarify getRelocationAddress x getRelocationOffset a bit. · 1e483879
      Rafael Espindola authored
      getRelocationAddress is for dynamic libraries and executables,
      getRelocationOffset for relocatable objects.
      
      Mark the getRelocationAddress of COFF and MachO as not implemented yet. Add a
      test of ELF's. llvm-readobj -r now prints the same values as readelf -r.
      
      llvm-svn: 180259
      1e483879
  9. Apr 23, 2013
  10. Apr 22, 2013
  11. Apr 17, 2013
  12. Apr 11, 2013
  13. Apr 09, 2013
    • Alexey Samsonov's avatar
      DWARF parser: Fix DWARF-2/3 incompatibility: size of DW_FORM_ref_addr is the... · d60859b2
      Alexey Samsonov authored
      DWARF parser: Fix DWARF-2/3 incompatibility: size of DW_FORM_ref_addr is the same as DW_FORM_addr in DWARF2, and is 4/8 bytes on 32/64-bit DWARF starting from DWARF3. Adding a test for this is a huge pain - generating and uploading pre-built binary with DWARF3 debug info is way too ugly, and writing fine-grained unittests for DebugInfo is impossible, as it doesn't expose any headers in include/llvm. That said, I'm going to choose the second approach and submit the patch exposing DebugInfo headers for review soon enough.
      
      llvm-svn: 179095
      d60859b2
  14. Apr 08, 2013
  15. Apr 07, 2013
  16. Mar 21, 2013
  17. Mar 20, 2013
  18. Feb 22, 2013
  19. Feb 21, 2013
    • Eli Bendersky's avatar
      Previously, parsing capability of the .debug_frame section was added · 705085da
      Eli Bendersky authored
      to lib/DebugInfo, with dumping in llvm-dwarfdump. This patch adds
      initial ability to parse and dump CFA instructions contained in
      entries.
      
      To keep it manageable, the patch omits some more advanced capabilities
      (accounted in TODOs):
      
      * Parsing of instructions with BLOCK arguments (expression lists)
      * Dumping of actual instruction arguments (currently only names are
      dumped). This is quite tricky since the dumper has to effectively
      "interpret" the instructions.
      
      llvm-svn: 175820
      705085da
  20. Feb 15, 2013
  21. Feb 12, 2013
  22. Feb 08, 2013
  23. Feb 07, 2013
  24. Feb 06, 2013
  25. Jan 26, 2013
Loading