diff options
| author | Sumanth Gundapaneni <sgundapa@codeaurora.org> | 2017-01-19 16:54:04 +0000 |
|---|---|---|
| committer | Sumanth Gundapaneni <sgundapa@codeaurora.org> | 2017-01-19 16:54:04 +0000 |
| commit | 1952acf958ab5d7276c642c3c4fb33028b42fc0e (patch) | |
| tree | fa7dca75a470e54d4d52a6cc2d72ffb5995c48b3 /clang/lib/Driver/ToolChains.cpp | |
| parent | 5f2f53b10639a8b1e9fea5a297435f8abd7e7bd7 (diff) | |
| download | bcm5719-llvm-1952acf958ab5d7276c642c3c4fb33028b42fc0e.tar.gz bcm5719-llvm-1952acf958ab5d7276c642c3c4fb33028b42fc0e.zip | |
[Hexagon] Linux linker does not support .gnu-hash
Hexagon Linux dynamic loader does not use (in fact does not support)
.gnu-hash
Differential Revision: https://reviews.llvm.org/D28865
llvm-svn: 292496
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
| -rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index 9bc9ae4f6a5..a4e797587cf 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -4122,6 +4122,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) const bool IsAndroid = Triple.isAndroid(); const bool IsMips = isMipsArch(Arch); + const bool IsHexagon = Arch == llvm::Triple::hexagon; if (IsMips && !SysRoot.empty()) ExtraOpts.push_back("--sysroot=" + SysRoot); @@ -4131,7 +4132,8 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) // .gnu.hash needs symbols to be grouped by hash code whereas the MIPS // ABI requires a mapping between the GOT and the symbol table. // Android loader does not support .gnu.hash. - if (!IsMips && !IsAndroid) { + // Hexagon linker/loader does not support .gnu.hash + if (!IsMips && !IsAndroid && !IsHexagon) { if (Distro.IsRedhat() || Distro.IsOpenSUSE() || (Distro.IsUbuntu() && Distro >= Distro::UbuntuMaverick)) ExtraOpts.push_back("--hash-style=gnu"); |

