This is an archive of the discontinued LLVM Phabricator instance.

[LLD] [COFF] Sort .pdata for arm64
ClosedPublic

Authored by mstorsjo on Dec 13 2017, 2:03 AM.

Details

Summary

This works for linking the output from the MSVC compiler. The pdata entries for arm64 seem to be 8 bytes in the same (or at least similar) form to ARM.

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.Dec 13 2017, 2:03 AM
mstorsjo retitled this revision from [COFF] Sort .pdata for arm64 to [LLD] [COFF] Sort .pdata for arm64.Dec 13 2017, 2:25 AM
compnerd added inline comments.Dec 13 2017, 9:46 AM
COFF/Writer.cpp
886 ↗(On Diff #126690)

Why not just do:

if (Config->Machine == ARMNT || Config->Machine == ARM64) {
mstorsjo added inline comments.Dec 13 2017, 9:56 AM
COFF/Writer.cpp
886 ↗(On Diff #126690)

Doh, yes - I'll change it to that form.

mstorsjo updated this revision to Diff 126795.Dec 13 2017, 11:20 AM

Using the same conditional block as for arm.

ruiu accepted this revision.Dec 13 2017, 12:55 PM

LGTM

This revision is now accepted and ready to land.Dec 13 2017, 12:55 PM
This revision was automatically updated to reflect the committed changes.
rnk added inline comments.Dec 14 2017, 10:38 AM
lld/trunk/test/COFF/pdata-arm64.yaml
1

In the future, please include the C source used to generate this object file as a comment.