This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho][nfc] Add test for resolution of bitcode symbols
ClosedPublic

Authored by int3 on Jul 22 2021, 2:23 PM.

Details

Summary

We lacked a test for bitcode symbol precedence. We assumed that
they followed the same rules as their regular symbol counterparts, but
never had a test to verify that we were matching ld64's behavior. It
turns out that we were largely correct, though we deviate from ld64 when
there are bitcode and non-bitcode symbols of the same name. The test
added in this diff both verifies our behavior and documents the
differences.

Diff Detail

Event Timeline

int3 created this revision.Jul 22 2021, 2:23 PM
Herald added a project: Restricted Project. · View Herald Transcript
int3 requested review of this revision.Jul 22 2021, 2:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2021, 2:23 PM
int3 retitled this revision from [lld-macho][nfc] Add test for resolution of LTO symbols to [lld-macho][nfc] Add test for resolution of bitcode symbols.Jul 22 2021, 2:24 PM
int3 edited the summary of this revision. (Show Details)
thakis accepted this revision.Jul 22 2021, 7:21 PM
thakis added a subscriber: lgrey.
thakis added a subscriber: thakis.

Nice!

This revision is now accepted and ready to land.Jul 22 2021, 7:23 PM
This revision was automatically updated to reflect the committed changes.