This is an archive of the discontinued LLVM Phabricator instance.

[ORC] Fix materialization of weak local symbols
ClosedPublic

Authored by benlangmuir on Nov 18 2021, 4:55 PM.

Details

Reviewers
lhames
Summary

We were adding all defined weak symbols to the materialization
responsibility, but local symbols will not be in the symbol table, so it
failed to materialize due to the "missing" symbol.

Local weak symbols come up in practice when using ld -r with a hidden
weak symbol.

rdar://85574696

Diff Detail

Event Timeline

benlangmuir created this revision.Nov 18 2021, 4:55 PM
benlangmuir requested review of this revision.Nov 18 2021, 4:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2021, 4:55 PM
lhames accepted this revision.Nov 18 2021, 4:59 PM

Nice catch! LGTM.

This revision is now accepted and ready to land.Nov 18 2021, 4:59 PM