diff options
| author | Fangrui Song <maskray@google.com> | 2019-12-22 14:50:14 -0800 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-12-26 09:54:22 -0800 |
| commit | 1edd9651307112447f83a0cd402ee23125f0fdb3 (patch) | |
| tree | 531aa8f7ca5d105140deb7490740141f6e2814e4 /clang-tools-extra/unittests/clang-query/QueryParserTest.cpp | |
| parent | cb5eb13eafdcf2d6ad8dc3a2c7b25eea3948839d (diff) | |
| download | bcm5719-llvm-1edd9651307112447f83a0cd402ee23125f0fdb3.tar.gz bcm5719-llvm-1edd9651307112447f83a0cd402ee23125f0fdb3.zip | |
[ELF] Support input section description .gnu.version* in /DISCARD/
Linux powerpc discards `*(.gnu.version*)` (arch/powerpc/kernel/vmlinux.lds.S)
to suppress --orphan-handling=warn warnings in the -pie output `.tmp_vmlinux1`
The support is simple. Just add isLive() to:
1) Fix an assertion in SectionBase::getPartition() called by VersionTableSection::isNeeded().
2) Suppress DT_VERSYM, DT_VERDEF, DT_VERNEED and DT_VERNEEDNUM, if the relevant section is discarded.
Reviewed By: grimar
Differential Revision: https://reviews.llvm.org/D71819
Diffstat (limited to 'clang-tools-extra/unittests/clang-query/QueryParserTest.cpp')
0 files changed, 0 insertions, 0 deletions

