This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] Implement support for -mark_dead_strippable_dylib
ClosedPublic

Authored by thakis on Mar 9 2021, 7:19 AM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Commits
rG1aafaaca6717: [lld/mac] Implement support for -mark_dead_strippable_dylib
Summary

lld doesn't read MH_DEAD_STRIPPABLE_DYLIB to strip dead dylibs yet,
but now it can produce dylibs with it set.

While here, also switch an existing test that looks only at the main Mach-O
header from --all-headers to --private-header.

Diff Detail

Event Timeline

thakis created this revision.Mar 9 2021, 7:19 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: dang. · View Herald Transcript
thakis requested review of this revision.Mar 9 2021, 7:19 AM
int3 accepted this revision.Mar 9 2021, 12:03 PM
int3 added inline comments.
lld/MachO/Options.td
338

nit: dead-strippable

This revision is now accepted and ready to land.Mar 9 2021, 12:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2021, 6:03 AM
thakis marked an inline comment as done.Mar 10 2021, 6:51 AM