[PATCH] D48745: [LLD] [COFF, MinGW] Implement the GNU ld options -S/--strip-debug

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 28 14:37:02 PDT 2018


mstorsjo created this revision.
mstorsjo added reviewers: ruiu, pcc, rnk.
Herald added subscribers: JDevlieghere, aprantl.

In this mode, we retain the symbol table, but skip the actual debug information.

Add an LLD specific option -debug:symtab to lld-link, and hook this up to -S/--strip-debug in the mingw frontend.

Sending in one single review item for simplicity, can commit in two separate commits once it's ok.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D48745

Files:
  COFF/Config.h
  COFF/Driver.cpp
  COFF/Options.td
  COFF/Writer.cpp
  MinGW/Driver.cpp
  MinGW/Options.td
  test/COFF/sort-debug.test
  test/COFF/symtab.test
  test/MinGW/driver.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48745.153399.patch
Type: text/x-patch
Size: 5191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180628/b3b15620/attachment.bin>


More information about the llvm-commits mailing list