aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2017-07-04 17:32:51 +0000
committerEd Maste <emaste@FreeBSD.org>2017-07-04 17:32:51 +0000
commit0a7e7475c3799552b30aca629b87531301da4faf (patch)
treed64936d2011931f5a84947f0ee9decc3af5e6d2d /contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp
parentbb07ac4d64d50f47a3e05df6d56ca59d11bb1287 (diff)
downloadsrc-0a7e7475c3799552b30aca629b87531301da4faf.tar.gz
src-0a7e7475c3799552b30aca629b87531301da4faf.zip
lld: [ELF] Remove unused synthetic sections from script commands
Script commands are processed before unused synthetic sections are removed. Therefore, if a linker script matches one of these sections it'll get emitted as an empty output section because the logic for removing unused synthetic sections ignores script commands which could have already matched and captured one of these sections. This patch fixes that by also removing the unused synthetic sections from the script commands. Discussed with: dim Obtained from: LLVM r307037 Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/clang500-import/; revision=320649
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp')
0 files changed, 0 insertions, 0 deletions