This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] Don't lose "weak ref" bit when doing LTO
ClosedPublic

Authored by thakis on Dec 17 2021, 9:36 AM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Commits
rGc4b45eeb44fd: [lld/mac] Don't lose "weak ref" bit when doing LTO
Summary

Fixes #52778.

Probably fixes Chromium crashing on startup on macOS 10.15 (and older) systems
when building with LTO, but I haven't verified that yet.

Diff Detail

Event Timeline

thakis created this revision.Dec 17 2021, 9:36 AM
thakis requested review of this revision.Dec 17 2021, 9:36 AM
thakis edited the summary of this revision. (Show Details)Dec 17 2021, 9:41 AM
int3 accepted this revision.Dec 17 2021, 12:20 PM
int3 added a subscriber: int3.

Thanks!

lld/test/MachO/lto-weak-ref.ll
6
This revision is now accepted and ready to land.Dec 17 2021, 12:20 PM
thakis edited the summary of this revision. (Show Details)Dec 17 2021, 12:20 PM
thakis marked an inline comment as done.

Thanks!

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptDec 17 2021, 12:26 PM