Previously, lld would crash if the .pdata size is not an even multiple of the expected .pdata entry size. This makes it error instead.
(We hit this in Chromium due to an assembler problem: https://crbug.com/1101577)
Paths
| Differential D83479
[COFF] Error on unexpected .pdata size ClosedPublic Authored by hans on Jul 9 2020, 5:58 AM.
Details
Summary Previously, lld would crash if the .pdata size is not an even multiple of the expected .pdata entry size. This makes it error instead. (We hit this in Chromium due to an assembler problem: https://crbug.com/1101577)
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jul 9 2020, 8:49 AM
hans added inline comments.
Closed by commit rGe73d0b571996: [COFF] Error on unexpected .pdata size (authored by hans). · Explain WhyJul 13 2020, 4:39 AM This revision was automatically updated to reflect the committed changes. hans marked 3 inline comments as done.
Revision Contents
Diff 276719 lld/COFF/Writer.cpp
lld/test/COFF/pdata-arm64-bad.yaml
|
Nit: Twine(end-begin)
... to avoid a temporary std::string.