diff options
| author | Michal Gorny <mgorny@gentoo.org> | 2018-12-19 17:25:46 +0000 |
|---|---|---|
| committer | Michal Gorny <mgorny@gentoo.org> | 2018-12-19 17:25:46 +0000 |
| commit | aaf83c267dc4f63c7016821c804a813bcf3c6959 (patch) | |
| tree | 4ecaebcc2c8d4dda98fcced1dedee36feffe34b6 | |
| parent | 420d1e12b6adccef7a3c3e685135c5cfe8d2eb59 (diff) | |
| download | bcm5719-llvm-aaf83c267dc4f63c7016821c804a813bcf3c6959.tar.gz bcm5719-llvm-aaf83c267dc4f63c7016821c804a813bcf3c6959.zip | |
[Driver] Disable -faddrsig by default on NetBSD
Avoid passing -faddrsig by default on NetBSD. This platform is still
using old GNU binutils that crashes on executables containing those
sections.
Differential Revision: https://reviews.llvm.org/D55828
llvm-svn: 349647
| -rw-r--r-- | clang/lib/Driver/ToolChains/Clang.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp index 1f267e68f17..18a43a695d3 100644 --- a/clang/lib/Driver/ToolChains/Clang.cpp +++ b/clang/lib/Driver/ToolChains/Clang.cpp @@ -5273,7 +5273,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, if (Args.hasFlag(options::OPT_faddrsig, options::OPT_fno_addrsig, (TC.getTriple().isOSBinFormatELF() || TC.getTriple().isOSBinFormatCOFF()) && - TC.useIntegratedAs())) + TC.useIntegratedAs() && + RawTriple.getOS() != llvm::Triple::NetBSD)) CmdArgs.push_back("-faddrsig"); // Finally add the compile command to the compilation. |

