This is an archive of the discontinued LLVM Phabricator instance.

[MachO] Emit Weak ReadOnlyWithRel to ConstDataSection
ClosedPublic

Authored by steven_wu on Apr 9 2018, 6:41 PM.

Details

Summary

Darwin dynamic linker can handle weak symbols in ConstDataSection.
ReadonReadOnlyWithRel symbols should be emitted in ConstDataSection
instead of normal DataSection.

rdar://problem/39298457

Diff Detail

Repository
rL LLVM

Event Timeline

steven_wu created this revision.Apr 9 2018, 6:41 PM

Have you confirmed this doesn't need to depend on the deployment target? I.e., do we need the old logic sometimes when back-deploying?

Otherwise LGTM.

This revision was not accepted when it landed; it landed in state Needs Review.Apr 10 2018, 1:19 PM
This revision was automatically updated to reflect the committed changes.