Skip to content
  1. May 09, 2013
  2. May 04, 2013
  3. May 03, 2013
    • Amara Emerson's avatar
      Add support for reading ARM ELF build attributes. · 2f54d9fe
      Amara Emerson authored
      Build attribute sections can now be read if they exist via ELFObjectFile, and
      the llvm-readobj tool has been extended with an option to dump this information
      if requested. Regression tests are also included which exercise these features.
      
      Also update the docs with a fixed ARM ABI link and a new link to the Addenda
      which provides the build attributes specification.
      
      llvm-svn: 181009
      2f54d9fe
  4. 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
  5. Apr 24, 2013
    • Rafael Espindola's avatar
      Use pointers to iterate over symbols. · 75c3036d
      Rafael Espindola authored
      While here, don't report a dummy symbol for relocations that don't have symbols.
      We used to says such relocations were for the first defined symbol, but now we
      return end_symbols(). The llvm-readobj output change agrees with otool.
      
      llvm-svn: 180214
      75c3036d
  6. Apr 22, 2013
  7. Apr 18, 2013
  8. Apr 15, 2013
  9. Apr 13, 2013
  10. Apr 12, 2013
  11. Apr 11, 2013
  12. Apr 10, 2013
  13. Apr 09, 2013
  14. Apr 08, 2013
  15. Apr 07, 2013
  16. Apr 05, 2013
  17. Apr 03, 2013
    • Eric Christopher's avatar
      Implements low-level object file format specific output for COFF and · 9cad53cf
      Eric Christopher authored
      ELF with support for:
      
      - File headers
      - Section headers + data
      - Relocations
      - Symbols
      - Unwind data (only COFF/Win64)
      
      The output format follows a few rules:
      - Values are almost always output one per line (as elf-dump/coff-dump already do). - Many values are translated to something readable (like enum names), with the raw value in parentheses.
      - Hex numbers are output in uppercase, prefixed with "0x".
      - Flags are sorted alphabetically.
      - Lists and groups are always delimited.
      
      Example output:
      ---------- snip ----------
      Sections [
        Section {
          Index: 1
          Name: .text (5)
          Type: SHT_PROGBITS (0x1)
          Flags [ (0x6)
            SHF_ALLOC (0x2)
            SHF_EXECINSTR (0x4)
          ]
          Address: 0x0
          Offset: 0x40
          Size: 33
          Link: 0
          Info: 0
          AddressAlignment: 16
          EntrySize: 0
          Relocations [
            0x6 R_386_32 .rodata.str1.1 0x0
            0xB R_386_PC32 puts 0x0
            0x12 R_386_32 .rodata.str1.1 0x0
            0x17 R_386_PC32 puts 0x0
          ]
          SectionData (
            0000: 83EC04C7 04240000 0000E8FC FFFFFFC7  |.....$..........|
            0010: 04240600 0000E8FC FFFFFF31 C083C404  |.$.........1....|
            0020: C3                                   |.|
          )
        }
      ]
      ---------- snip ----------
      
      Relocations and symbols can be output standalone or together with the section header as displayed in the example.
      This feature set supports all tests in test/MC/COFF and test/MC/ELF (and I suspect all additional tests using elf-dump), making elf-dump and coff-dump deprecated.
      
      Patch by Nico Rieck!
      
      llvm-svn: 178679
      9cad53cf
  18. Mar 25, 2013
  19. Feb 20, 2013
  20. Feb 08, 2013
  21. Feb 05, 2013
  22. Dec 31, 2012
  23. Dec 04, 2012
    • Chandler Carruth's avatar
      Sort the #include lines for tools/... · 4d88a1c2
      Chandler Carruth authored
      Again, tools are trickier to pick the main module header for than
      library source files. I've started to follow the pattern of using
      LLVMContext.h when it is included as a stub for program source files.
      
      llvm-svn: 169252
      4d88a1c2
  24. Mar 10, 2012
  25. Mar 09, 2012
    • David Meyer's avatar
      Support reading GNU symbol versions in ELFObjectFile · 6c614bf7
      David Meyer authored
      * Add enums and structures for GNU version information.
      * Implement extraction of that information on a per-symbol basis (ELFObjectFile::getSymbolVersion).
      * Implement a generic interface, GetELFSymbolVersion(), for getting the symbol version from the ObjectFile (hides the templating).
      * Have llvm-readobj print out the version, when available.
      * Add a test for the new feature: readobj-elf-versioning.test
      
      llvm-svn: 152436
      6c614bf7
  26. Mar 03, 2012
  27. Mar 01, 2012
    • David Meyer's avatar
      [Object] · c429b80d
      David Meyer authored
      Add ObjectFile::getLoadName() for retrieving the soname/installname of a shared object.
      
      llvm-svn: 151845
      c429b80d
Loading