When writing a PDB, the OutputSection of all chunks need to be set. The thunks are added directly to OutputSection after the normal machinery that sets it for all other chunks.
This fixes part of PR40467.
Paths
| Differential D57574
[LLD] [COFF] Fix crashes when writing a PDB after adding thunks. ClosedPublic Authored by mstorsjo on Feb 1 2019, 2:25 AM.
Details
Summary When writing a PDB, the OutputSection of all chunks need to be set. The thunks are added directly to OutputSection after the normal machinery that sets it for all other chunks. This fixes part of PR40467.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Feb 1 2019, 9:34 AM Closed by commit rL352928: [COFF] Fix crashes when writing a PDB after adding thunks. (authored by mstorsjo). · Explain WhyFeb 1 2019, 2:07 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 184700 COFF/Writer.cpp
test/COFF/arm-thumb-thunks-pdb.s
|