Skip to content
  1. Nov 27, 2017
    • David Blaikie's avatar
      Rename CommandFlags.h -> CommandFlags.def · c14bfec4
      David Blaikie authored
      Since this isn't a real header - it includes static functions and had
      external linkage variables (though this change makes them static, since
      that's what they should be) so can't be included more than once in a
      program.
      
      llvm-svn: 319082
      c14bfec4
    • Adam Nemet's avatar
      [opt-viewer] Fix option name · ed7a9325
      Adam Nemet authored
      llvm-svn: 319072
      ed7a9325
    • Jake Ehrlich's avatar
      [llvm-objcopy] Add --strip-all-gnu and change --strip-all · 6ad72d05
      Jake Ehrlich authored
      GNU's --strip-all doesn't strip as aggressively as it could in general.
      Currently llvm-objcopy copies the exact behavoir of GNU's --strip-all.
      eu-strip is used as a drop in replacement for GNU strip/objcopy in many many
      places without issue. eu-strip removes non-allocated sections and keeps
      .gnu.warning* sections. Because --strip-all will likely be the most widely
      used stripping option we should make --strip-all as aggressive as it can safely
      be. Since we have evidence from eu-strip that this is a safe option we should
      allow it. For those that might still have an issue afterwards I've added
      --strip-all-gnu as an exact drop in replacement for GNU's --strip-all as well.
      
      llvm-svn: 319071
      6ad72d05
  2. Nov 22, 2017
  3. Nov 21, 2017
  4. Nov 17, 2017
  5. Nov 16, 2017
  6. Nov 15, 2017
    • Rafael Espindola's avatar
      Simplify file handling in dsymutil. · 7ac92e2c
      Rafael Espindola authored
      This moves the file handling out of DwarfLinker.cpp.
      
      This fixes what is at least an oddity if not a bug. DwarfLinker.cpp
      was using ToolOutputFile, which uses RemoveFileOnSignal. The issue is
      that dsymutil.cpp uses that too. It is now clear from the interface
      that only dsymutil.cpp is responsible for creating and deleting files.
      
      llvm-svn: 318334
      7ac92e2c
    • Jake Ehrlich's avatar
      [llvm-objcopy] Change -O binary to respect section removal and behave like GNU objcopy · d49c92b1
      Jake Ehrlich authored
      The original -O binary implementation just copied segment data from the
      object and dumped it into a file. This doesn't take into account any
      operations performed on objects such as section removal. GNU objcopy has
      some specific behavior that we'd also like to respect. For instance
      using -O binary and -j <some_section> will dump <some_section> to a
      file. This change implements GNU objcopy style -O binary to as close of
      an approximation as I can determine.
      
      Differential Revision: https://reviews.llvm.org/D39713
      
      llvm-svn: 318324
      d49c92b1
    • Mitch Phillips's avatar
      [cfi-verify] Validate there are no register clobbers between CFI-check and instruction execution. · 2e7be2a6
      Mitch Phillips authored
      Summary:
      This patch adds another failure mode for `validateCFIProtection(..)`, wherein any register that affects the indirect control flow instruction is clobbered to between the CFI-check and the instruction's execution.
      
      Also includes a modification to make MCInstrDesc::hasDefOfPhysReg public.
      
      Reviewers: vlad.tsyrklevich
      
      Reviewed By: vlad.tsyrklevich
      
      Subscribers: llvm-commits, pcc, kcc
      
      Differential Revision: https://reviews.llvm.org/D39820
      
      llvm-svn: 318238
      2e7be2a6
  7. Nov 14, 2017
  8. Nov 13, 2017
    • Jake Ehrlich's avatar
      [llvm-objcopy] Add --strip-debug · 1bfefc1c
      Jake Ehrlich authored
      Many projects use this option. There are two ways to use it. You can
      either a) Just use --strip-debug and keep the old file with debug
      content or b) you can use --strip-debug, --only-keep-debug, and
      --add-gnu-debuglink all in conjunction to create two separate files, the
      stripped file and the debug file. --only-keep-debug is more complicated
      than --strip-debug because it keeps the section headers without keeping
      section contents. That's not really supported by llvm-objcopy at the
      moment but I plan on adding it. So this change just supports a) and
      options to support b) will come soon.
      
      Differential Revision: https://reviews.llvm.org/D39919
      
      llvm-svn: 318094
      1bfefc1c
    • Jake Ehrlich's avatar
      [llvm-objcopy] Add --strip-all option to llvm-objcopy · fabddf18
      Jake Ehrlich authored
      This change adds a slightly less extreme form of stripping. It should
      remove any section that starts with ".debug" and should remove any
      symbol table or relocations. In general this strips out most of the
      stuff you don't need to execute but leaves a number of things around.
      This behavior has been designed to be compatible with GNU strip/objcopy
      --strip-all so that anywhere you currently use --strip-all you should be
      able to use llvm-objcopy as a drop in replacement.
      
      Differential Revision: https://reviews.llvm.org/D39769
      
      llvm-svn: 318092
      fabddf18
  9. Nov 10, 2017
Loading