This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Handle non-extern symbols marked as private extern
ClosedPublic

Authored by int3 on Jun 17 2021, 6:45 PM.

Details

Summary

Previously, we asserted that such a case was invalid, but in fact
ld -r can emit such symbols if the input contained a (true) private
extern, or if it contained a symbol started with "L".

Non-extern symbols marked as private extern are essentially equivalent
to regular TU-scoped symbols, so no new functionality is needed.

Diff Detail