[ELF] Add support for -no-gc-sections flag
authorPetr Hosek <phosek@chromium.org>
Tue, 6 Sep 2016 18:28:49 +0000 (18:28 +0000)
committerPetr Hosek <phosek@chromium.org>
Tue, 6 Sep 2016 18:28:49 +0000 (18:28 +0000)
commit5baa1c76410e2d250a897f92ddc92dbdcd69040c
tree52a9f1db4f232823ffc1582e23551bbec97899c9
parentc748359c14956ae6453435a7fa7659af0b46916b
[ELF] Add support for -no-gc-sections flag

This flag is supported by both BFD ld and gold and is occasionally
used to negate the effect of -gc-sections flag.

Differential Revision: https://reviews.llvm.org/D24270

llvm-svn: 280729
lld/ELF/Driver.cpp
lld/ELF/Options.td