This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho][nfc] Tests for -force_load + regular archive load combinations
ClosedPublic

Authored by int3 on Jun 16 2022, 8:22 PM.

Details

Summary

I realized we'd forgotten to cover this case (though our existing
behavior is indeed correct / matches ld64's).

Diff Detail

Event Timeline

int3 created this revision.Jun 16 2022, 8:22 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 16 2022, 8:22 PM
int3 requested review of this revision.Jun 16 2022, 8:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2022, 8:22 PM
thakis accepted this revision.Jun 16 2022, 8:43 PM
thakis added a subscriber: thakis.

Seems possibly worth emitting a warning for, seems like surprising behavior...

This revision is now accepted and ready to land.Jun 16 2022, 8:43 PM
int3 added inline comments.Jul 12 2022, 2:57 PM
lld/test/MachO/force-load.s
25

... whoops I forgot to change this line after copypasting. Fixed in 61ace8f78b1c