This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by mstorsjo on Jun 28 2018, 2:36 PM.

Details

Summary

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.

Diff Detail

Event Timeline

mstorsjo created this revision.Jun 28 2018, 2:36 PM
ruiu accepted this revision.Jun 28 2018, 8:57 PM

LGTM

This revision is now accepted and ready to land.Jun 28 2018, 8:57 PM
This revision was automatically updated to reflect the committed changes.