Page MenuHomePhabricator

[LLD] [COFF] Don't produce base relocs for discardable sections
ClosedPublic

Authored by mstorsjo on Jul 15 2018, 1:34 PM.

Details

Summary

Dwarf debug info contains some data that otherwise would end up containing absolute addresses. Since these sections are discardable and aren't loaded at runtime, there's no point in adding base relocations for them.

This makes sure that after stripping out dwarf debug info, there are no base relocations that point to nonexistent sections.

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.Jul 15 2018, 1:34 PM
pcc accepted this revision.Jul 18 2018, 3:11 PM

LGTM

This revision is now accepted and ready to land.Jul 18 2018, 3:11 PM
This revision was automatically updated to reflect the committed changes.