diff options
author | Petr Hosek <phosek@chromium.org> | 2017-07-03 15:49:25 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-07-03 15:49:25 +0000 |
commit | 52db9a4fe6757c8c76d1ef205ce4368b3444bf0b (patch) | |
tree | 3059d7521ea6fbc1f4c763189847085eaa85bffd /llvm/unittests/Support/MathExtrasTest.cpp | |
parent | d7a1c334ce1f26a056b8b553d2474e895c65c96a (diff) | |
download | llvm-52db9a4fe6757c8c76d1ef205ce4368b3444bf0b.zip llvm-52db9a4fe6757c8c76d1ef205ce4368b3444bf0b.tar.gz llvm-52db9a4fe6757c8c76d1ef205ce4368b3444bf0b.tar.bz2 |
[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.
Differential Revision: https://reviews.llvm.org/D34800
llvm-svn: 307037
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions