This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj][COFF] Print forwarder export symbols correctly
ClosedPublic

Authored by alvinhochun on Sep 23 2022, 5:52 AM.

Diff Detail

Event Timeline

alvinhochun created this revision.Sep 23 2022, 5:52 AM
Herald added a project: Restricted Project. · View Herald Transcript
alvinhochun requested review of this revision.Sep 23 2022, 5:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2022, 5:52 AM
mstorsjo accepted this revision.Sep 23 2022, 5:57 AM

LGTM, this looks reasonable to me!

llvm/test/tools/llvm-readobj/COFF/exports-forwarder.yaml
13

Nitpick, I think you could achieve the same here without -lldmingw, allowing you to lose -exclude-all-symbols too - and that would shrink the rdata by a couple bytes too.

(Mingw executables get a couple extra dummy bytes due to ctor/dtor list placeholders, see insertCtorDtorSymbols in Writer.cpp. In theory those placeholders could be symbols without any associated dummy data, but changing it would need to be synchronized across binutils/lld/mingw-w64-crt and would break mixing versions among all those.)

This revision is now accepted and ready to land.Sep 23 2022, 5:57 AM

Reduce size of test file

Reduce size of test file

Awesome, thanks!

This revision was automatically updated to reflect the committed changes.