This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho][nfc] Avoid using absolute addresses in cgprofile-icf.s
ClosedPublic

Authored by int3 on Mar 3 2022, 2:06 PM.

Details

Summary

If we fix https://github.com/llvm/llvm-project/issues/54184, the
dyld_stub_binder symbol will get included in every output dylib. This
would cause the addresses of the other symbols to shift, breaking the
test as it currently stands. Let's make the test more flexible.

Diff Detail

Event Timeline

int3 created this revision.Mar 3 2022, 2:06 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 3 2022, 2:06 PM
int3 requested review of this revision.Mar 3 2022, 2:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2022, 2:06 PM
lgrey accepted this revision.Mar 3 2022, 2:10 PM

LGTM!

This revision is now accepted and ready to land.Mar 3 2022, 2:10 PM