Skip to content
  1. Nov 11, 2013
  2. Oct 07, 2013
  3. Oct 01, 2013
  4. Sep 15, 2013
  5. Sep 03, 2013
  6. Aug 09, 2013
    • Michael J. Spencer's avatar
      [Object] Split the ELF interface into 3 parts. · 126973ba
      Michael J. Spencer authored
      * ELFTypes.h contains template magic for defining types based on endianess, size, and alignment.
      * ELFFile.h defines the ELFFile class which provides low level ELF specific access.
      * ELFObjectFile.h contains ELFObjectFile which uses ELFFile to implement the ObjectFile interface.
      
      llvm-svn: 188022
      126973ba
  7. Jul 25, 2013
  8. 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
  9. May 09, 2013
  10. May 04, 2013
  11. 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
  12. 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
  13. Apr 22, 2013
  14. Apr 12, 2013
  15. 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
Loading