The reason for this is that I want to use the lld infrastructure for getting data and relocations.
This means that the data for .debug_gnu_pubnames will be just a InputSection->Data, which means we have to at least create a InputSection.
Differential D35339
Delay removal of pubtypes and pubnames Authored by • rafael on Jul 12 2017, 5:10 PM.
Details
Diff Detail Event TimelineComment Actions This looks fine for me as is too, but have few ideas to share.
| ||||||||||||
What about leaving it here (for consistency with others discarded sections), but marking as dead from start ?
if (Config->GdbIndex && (Name == ".debug_gnu_pubnames" || Name == ".debug_gnu_pubtypes")) { InputSectionBase *Sec = make<InputSection>(this, &Sec, Name); Script->discard({Sec}); return Sec; }