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:Moritz 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
Showing
- compiler/NOTES 16 additions, 0 deletionscompiler/NOTES
- compiler/llvmGen/LlvmCodeGen/Ppr.hs 7 additions, 1 deletioncompiler/llvmGen/LlvmCodeGen/Ppr.hs
- compiler/nativeGen/PPC/Ppr.hs 1 addition, 6 deletionscompiler/nativeGen/PPC/Ppr.hs
- compiler/nativeGen/SPARC/Ppr.hs 1 addition, 6 deletionscompiler/nativeGen/SPARC/Ppr.hs
- compiler/nativeGen/X86/Ppr.hs 1 addition, 6 deletionscompiler/nativeGen/X86/Ppr.hs
- testsuite/tests/llvm/should_run/Makefile 3 additions, 0 deletionstestsuite/tests/llvm/should_run/Makefile
- testsuite/tests/llvm/should_run/subsections_via_symbols/Makefile 13 additions, 0 deletions...te/tests/llvm/should_run/subsections_via_symbols/Makefile
- testsuite/tests/llvm/should_run/subsections_via_symbols/SubsectionsViaSymbols.hs 5 additions, 0 deletions...ould_run/subsections_via_symbols/SubsectionsViaSymbols.hs
- testsuite/tests/llvm/should_run/subsections_via_symbols/all.T 15 additions, 0 deletions...suite/tests/llvm/should_run/subsections_via_symbols/all.T
- testsuite/tests/llvm/should_run/subsections_via_symbols/subsections_via_symbols-libtool-quiet 4 additions, 0 deletions...ections_via_symbols/subsections_via_symbols-libtool-quiet
- testsuite/tests/llvm/should_run/subsections_via_symbols/subsections_via_symbols.m 11 additions, 0 deletions...uld_run/subsections_via_symbols/subsections_via_symbols.m
- testsuite/tests/llvm/should_run/subsections_via_symbols/subsections_via_symbols.stderr 0 additions, 0 deletions...un/subsections_via_symbols/subsections_via_symbols.stderr
- testsuite/tests/llvm/should_run/subsections_via_symbols/subsections_via_symbols.stdout 2 additions, 0 deletions...un/subsections_via_symbols/subsections_via_symbols.stdout
Loading
Please register or sign in to comment