The name says it.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
ELF/MarkLive.cpp | ||
---|---|---|
72 ↗ | (On Diff #71843) | Is this tested in this patch? Can in be in a followup? |
ELF/MarkLive.cpp | ||
---|---|---|
72 ↗ | (On Diff #71843) | This is needed for .debug_lines section, because it has relocations to comdat sections. I'll update test case for this change. |
Now this just adds two patterns to isReserved(). Rafael, can you please look at this?
Sorry, this had dropped out of my inbox.
This patch would require updating the comment
Sections listed below are special because they are used by the loader
just by being in an ELF file. They should not be garbage-collected.
since it adds another reason for not gcing.
But I think we can make it far more general and avoid yet another section name check: Just GC SHF_ALLOC sections.
In practice most non SHF_ALLOC sections are debug info. I remember some time back Cary Coutant had a proposal for how to gc them, but it will be a long time before we get there.
test/ELF/gc-sections.s | ||
---|---|---|
17 ↗ | (On Diff #72296) | oops, missed that |