Skip to content
  1. Jan 16, 2019
  2. Jan 15, 2019
    • Jordan Rupprecht's avatar
      [llvm-ar] Resubmit recursive thin archive test with fix for full path names... · 904ce984
      Jordan Rupprecht authored
      [llvm-ar] Resubmit recursive thin archive test with fix for full path names and better error messages
      
      llvm-svn: 351256
      904ce984
    • Michael Trent's avatar
      llvm-objdump -m -D should disassemble all text segments · 7e660211
      Michael Trent authored
      Summary:
      When running llvm-objdump with the -macho option objdump will by default
      disassemble only the __TEXT,__text section (or __TEXT_EXEC,__text when
      disassembling MH_KEXT_BUNDLE files). The -disassemble-all option is
      treated no diferently than -disassemble.
      
      This change upates llvm-objdump's MachO parsing code to disassemble all
      __text sections found in a file when -disassemble-all is specified. This
      is useful for disassembling files with more than one __text section, or
      when disassembling files whose __text section is not present in __TEXT.
      
      I added a lit test case that verifies "llvm-objdump -m -d" and 
      "llvm-objdump -m -D" produce the expected results on a reference binary. 
      I also updated the CommandGuide documentation for llvm-objdump.rst and
      verified it renders correctly as man and html.
      
      rdar://42899338
      
      Reviewers: ab, pete, lhames
      
      Reviewed By: lhames
      
      Subscribers: rupprecht, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D56649
      
      llvm-svn: 351238
      7e660211
    • Jordan Rupprecht's avatar
      [llvm-readelf] Allow single-letter flags to be merged. · 58aac950
      Jordan Rupprecht authored
      Summary:
      This patch adds support for merged arguments (e.g. -SW == -S -W) for llvm-readelf.
      
      No changes are intended for llvm-readobj. There are a few short flags (-sd, -sr, -st, -dt) that would conflict with grouped single letter flags, and having only some grouped flags might be confusing. So, allow merged flags for readelf compatibility, but force separate args for llvm-readobj. From what I can tell, these two-letter flags are only used with llvm-readobj, not llvm-readelf.
      
      This fixes PR40064.
      
      Reviewers: jhenderson, kristina, echristo, phosek
      
      Reviewed By: jhenderson
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D56629
      
      llvm-svn: 351205
      58aac950
    • Jordan Rupprecht's avatar
      [llvm-objcopy] Use SHT_NOTE for added note sections. · 17dd4a2c
      Jordan Rupprecht authored
      Summary:
      Fix llvm-objcopy to add .note sections as SHT_NOTEs. GNU objcopy overrides section flags for special sections. For `.note` sections (with the exception of `.note.GNU-stack`), SHT_NOTE is used.
      
      Many other sections are special cased by libbfd, but `.note` is the only special section I can seem to find being used with objcopy --add-section.
      
      See `.note` in context of the full list of special sections here: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=bfd/elf.c;h=eb3e1828e9c651678b95a1dcbc3b124783d1d2be;hb=HEAD#l2675
      
      Reviewers: jhenderson, alexshap, jakehehrlich, espindola
      
      Reviewed By: jhenderson
      
      Subscribers: emaste, arichardson, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D56570
      
      llvm-svn: 351204
      17dd4a2c
    • George Rimar's avatar
      [llvm-obdump] - Fix the help lines for -stop-address and -z. · 3687c3e9
      George Rimar authored
      It was broken by me by mistake in r350823 during addressing the
      review comment before committing (changed not the right text line).
      
      llvm-svn: 351192
      3687c3e9
    • Martin Storsjö's avatar
      [llvm-objcopy] [COFF] Implement --strip-all[-gnu] for symbols · f51f5ea6
      Martin Storsjö authored
      Differential Revision: https://reviews.llvm.org/D56481
      
      llvm-svn: 351174
      f51f5ea6
    • George Rimar's avatar
      [llvm-objdump] - Cleanup the code. NFCI. · 73a27235
      George Rimar authored
      This is a cosmetic cleanup for the llvm-objdump code.
      
      This patch:
      * Renames things to match the official LLVM code style (lower case -> upper case).
      * Removes few obviously excessive variables.
      * Moves a few lines closer to the place of use, reorders the code a bit to simplify it,
      to avoid doing excessive returns and to avoid using 'else` after returns.
      
      I focused only on a llvm-objdump.h/llvm-objdump.cpp files. Few changes in the
      MachODump.cpp and COFFDump.cpp are a result of llvm-objdump.h modification.
      
      Differential revision: https://reviews.llvm.org/D56637
      
      llvm-svn: 351171
      73a27235
  3. Jan 14, 2019
  4. Jan 13, 2019
  5. Jan 12, 2019
  6. Jan 11, 2019
  7. Jan 10, 2019
  8. Jan 09, 2019
    • George Rimar's avatar
      [llvm-objdump] - Print symbol addressed when dumping disassembly output (-d) · 3ba0f3c0
      George Rimar authored
      When GNU objdump dumps the input with -d it prints the symbol addresses,
      for example:
      
      0000000000000031 <foo>:
        31:	00 00                	add    %al,(%rax)
      	...
      
      llvm-objdump currently does not do that.
      Patch changes the behavior to match the GNU objdump.
      
      That is useful for implementing -z/--disassemble-zeroes (D56083),
      it allows omitting first zero bytes and keep the information
      about the symbol address in the output.
      
      Differential revision: https://reviews.llvm.org/D56123
      
      llvm-svn: 350726
      3ba0f3c0
  9. Jan 08, 2019
Loading