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.
Paths
| Differential D98262
[lld/mac] Implement support for -mark_dead_strippable_dylib ClosedPublic Authored by thakis on Mar 9 2021, 7:19 AM.
Details
Summary lld doesn't read MH_DEAD_STRIPPABLE_DYLIB to strip dead dylibs yet, While here, also switch an existing test that looks only at the main Mach-O
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 9 2021, 12:03 PM Closed by commit rG1aafaaca6717: [lld/mac] Implement support for -mark_dead_strippable_dylib (authored by thakis). · Explain WhyMar 10 2021, 6:03 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 329638 lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/Options.td
lld/MachO/SyntheticSections.cpp
lld/test/MachO/header.s
lld/test/MachO/mark-dead-strippable-dylib.s
|
nit: dead-strippable