Skip to content
  1. Sep 24, 2013
  2. Sep 23, 2013
    • David Blaikie's avatar
      DebugInfo: Wrap section data and relocs together for dwarf dumping support · 1b5ee5d9
      David Blaikie authored
      This is a small step that may enable some simplifications in producer
      (DWARFContext) and consumer (DWARFCompileUnit and other places) by
      making a more complete abstraction around the data and relocations for a
      section. Small initial steps could include simple changes such as
      passing the pair to DWARFCompileUnit's ctor rather than passing the data
      and relocs separately. I don't intend to pursue any such changes
      immediately, however.
      
      The motivation for doing this now is that type unit dumping will need to
      deal with these data+reloc pairs moreso than the existing dumping
      support has needed to associate the data as type unit sections are named
      the same (debug_types) and comdat group folded. So to implement dumping
      and reloc handling we'll need a mapping of section->data+relocs.
      
      llvm-svn: 191209
      1b5ee5d9
  3. Sep 22, 2013
  4. Sep 20, 2013
  5. Aug 27, 2013
    • Alexey Samsonov's avatar
      Add support for DebugFission to DWARF parser · e3ba81bf
      Alexey Samsonov authored
      Summary:
      1) Make llvm-symbolizer properly symbolize
      files with split debug info (by using stanalone .dwo files).
      2) Make DWARFCompileUnit parse and store corresponding .dwo file,
      if necessary.
      3) Make bits of DWARF parsing more CompileUnit-oriented.
      
      Reviewers: echristo
      
      Reviewed By: echristo
      
      CC: bkramer, llvm-commits
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D1164
      
      llvm-svn: 189329
      e3ba81bf
  6. Aug 23, 2013
  7. Aug 19, 2013
  8. Aug 06, 2013
  9. Jul 15, 2013
  10. Jun 19, 2013
  11. 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
  12. 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
  13. May 09, 2013
  14. May 06, 2013
  15. 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
  16. Apr 23, 2013
  17. Apr 22, 2013
  18. Apr 17, 2013
  19. Apr 11, 2013
  20. 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
  21. Apr 08, 2013
  22. Apr 07, 2013
  23. Mar 21, 2013
  24. Mar 20, 2013
  25. Feb 22, 2013
  26. 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
  27. Feb 15, 2013
  28. Feb 12, 2013
Loading