[PATCH 4/4] [PPC64LE] Update linker parms for PPC64LE.

Chandler Carruth chandlerc at google.com
Tue Mar 11 13:08:47 PDT 2014


Testcase please.


On Tue, Mar 11, 2014 at 12:54 PM, Will Schmidt <will_schmidt at vnet.ibm.com>wrote:

> Add and update a getArch() stanza during the linker steps, for the
> ppc64le target, with "elf64lppc" as the target mode.
> ---
>  tools/clang/lib/Driver/Tools.cpp |    2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/tools/clang/lib/Driver/Tools.cpp
> b/tools/clang/lib/Driver/Tools.cpp
> index 2705721..7f48a94 100644
> --- a/tools/clang/lib/Driver/Tools.cpp
> +++ b/tools/clang/lib/Driver/Tools.cpp
> @@ -6762,6 +6762,8 @@ void gnutools::Link::ConstructJob(Compilation &C,
> const JobAction &JA,
>      CmdArgs.push_back("elf32ppclinux");
>    else if (ToolChain.getArch() == llvm::Triple::ppc64)
>      CmdArgs.push_back("elf64ppc");
> +  else if (ToolChain.getArch() == llvm::Triple::ppc64le)
> +    CmdArgs.push_back("elf64lppc");
>    else if (ToolChain.getArch() == llvm::Triple::sparc)
>      CmdArgs.push_back("elf32_sparc");
>    else if (ToolChain.getArch() == llvm::Triple::sparcv9)
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140311/14394776/attachment.html>


More information about the cfe-commits mailing list