Skip to content
Snippets Groups Projects
Commit 53a4742d authored by Moritz Angermann's avatar Moritz Angermann Committed by Austin Seipp
Browse files

Allow -dead_strip linking on platforms with .subsections_via_symbols


Summary:
This allows to link objects produced with the llvm code generator to be linked with -dead_strip. This applies to at least the iOS cross compiler and OS X compiler.

Signed-off-by: default avatarMoritz Angermann <moritz@lichtzwerge.de>

Test Plan: Create a ffi library and link it with -dead_strip. If the resulting binary does not crash, the patch works as advertised.

Reviewers: rwbarton, simonmar, hvr, dterei, mzero, ezyang, austin

Reviewed By: dterei, ezyang, austin

Subscribers: thomie, mzero, simonmar, ezyang, carter

Differential Revision: https://phabricator.haskell.org/D206
parent 146dd138
No related branches found
No related tags found
No related merge requests found
Showing
with 79 additions and 19 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment