Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 397974 Details for
Bug 542030
sys-devel/llvm-3.5.0-r99 Failed Patch: llvm-3.5-musl-support.patch on hardened/musl
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
New llvm-3.5-musl-clang-support.patch
llvm-3.5-musl-clang-support.patch (text/plain), 2.34 KB, created by
Cato Auestad
on 2015-03-03 19:51:46 UTC
(
hide
)
Description:
New llvm-3.5-musl-clang-support.patch
Filename:
MIME Type:
Creator:
Cato Auestad
Created:
2015-03-03 19:51:46 UTC
Size:
2.34 KB
patch
obsolete
>adapted from llvm-alpine-linux.patch from Alpine > >diff -ru llvm-3.5.0.src.orig/tools/clang/lib/Driver/Tools.cpp llvm-3.5.0.src/tools/clang/lib/Driver/Tools.cpp >--- tools/clang/lib/Driver/Tools.cpp 2014-08-07 07:51:51.000000000 -0300 >+++ tools/clang/lib/Driver/Tools.cpp 2014-11-12 15:11:31.901864030 -0200 >@@ -7182,8 +7182,14 @@ > return "/system/bin/linker64"; > else > return "/system/bin/linker"; >- } else if (ToolChain.getArch() == llvm::Triple::x86 || >- ToolChain.getArch() == llvm::Triple::sparc) >+ } else if (ToolChain.getArch() == llvm::Triple::x86) { >+ switch (ToolChain.getTriple().getEnvironment()) { >+ case llvm::Triple::Musl: >+ return "/lib/ld-musl-i386.so.1"; >+ default: >+ return "/lib/ld-linux.so.2"; >+ } >+ } else if (ToolChain.getArch() == llvm::Triple::sparc) > return "/lib/ld-linux.so.2"; > else if (ToolChain.getArch() == llvm::Triple::aarch64 || > ToolChain.getArch() == llvm::Triple::arm64) >@@ -7193,10 +7199,17 @@ > return "/lib/ld-linux-aarch64_be.so.1"; > else if (ToolChain.getArch() == llvm::Triple::arm || > ToolChain.getArch() == llvm::Triple::thumb) { >- if (ToolChain.getTriple().getEnvironment() == llvm::Triple::GNUEABIHF) >+ switch (ToolChain.getTriple().getEnvironment()) { >+ case llvm::Triple::Musl: >+ case llvm::Triple::MuslEABI: >+ return "/lib/ld-musl-arm.so.3"; >+ case llvm::Triple::MuslEABIHF: >+ return "/lib/ld-musl-armhf.so.3"; >+ case llvm::Triple::GNUEABIHF: > return "/lib/ld-linux-armhf.so.3"; >- else >+ default: > return "/lib/ld-linux.so.3"; >+ } > } else if (ToolChain.getArch() == llvm::Triple::armeb || > ToolChain.getArch() == llvm::Triple::thumbeb) { > if (ToolChain.getTriple().getEnvironment() == llvm::Triple::GNUEABIHF) >@@ -7227,8 +7240,14 @@ > else if (ToolChain.getArch() == llvm::Triple::x86_64 && > ToolChain.getTriple().getEnvironment() == llvm::Triple::GNUX32) > return "/libx32/ld-linux-x32.so.2"; >- else >- return "/lib64/ld-linux-x86-64.so.2"; >+ else { >+ switch (ToolChain.getTriple().getEnvironment()) { >+ case llvm::Triple::Musl: >+ return "/lib/ld-musl-x86_64.so.1"; >+ default: >+ return "/lib64/ld-linux-x86-64.so.2"; >+ } >+ } > } > > static void AddRunTimeLibs(const ToolChain &TC, const Driver &D,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 542030
:
397966
|
397968
|
397970
|
397972
|
397974
|
398182