This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] Implement the missing bits of -undefined
ClosedPublic

Authored by thakis on Feb 28 2021, 12:31 PM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Commits
rG0658fc654c75: [lld/mac] Implement the missing bits of -undefined
Summary

This adds support for -undefined dynamic_lookup, and for
-undefined warning and -undefined suppress with -flat_namespace.

We just replace undefined symbols with a DynamicLookup when we hit them.

With this, check-llvm passes when using ld64.lld.darwinnew as host linker.

Diff Detail

Event Timeline

thakis created this revision.Feb 28 2021, 12:31 PM
Herald added a project: Restricted Project. · View Herald Transcript
thakis requested review of this revision.Feb 28 2021, 12:31 PM
int3 accepted this revision.Mar 1 2021, 9:19 AM

With this, check-llvm passes when using ld64.lld.darwinnew as host linker.

Awesome!

This revision is now accepted and ready to land.Mar 1 2021, 9:19 AM
This revision was landed with ongoing or failed builds.Mar 1 2021, 12:31 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2021, 12:31 PM