With this we only ask LTO to keep a C named section if there is a start_ or end symbol.
This is not as strict as lld's --gc-sections, but is as good as we can get without having a far more detailed ir summary.
Paths
| Differential D35910
Make __start_sec __end_sec handling more precise ClosedPublic Authored by • rafael on Jul 26 2017, 1:14 PM.
Details
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jul 26 2017, 4:19 PM
Revision Contents
Diff 108378 ELF/LTO.h
ELF/LTO.cpp
test/ELF/lto/section-name.ll
|
Nit: I'd move this to where the other fields are.