Wei Tang
2013-Feb-26 15:24 UTC
[LLVMdev] any option can control final linker choice in LLVM?
Hi All, I want to build cross compiler with LLVM-3.2 for X86, and hope LLVM compiler driver to pick up linker located in cross toolchain directory. It seems LLVM driver always chooses system linker "/usr/bin/ld" by default. Any option can be used to control? Thanks in advance! wei -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130226/c6450427/attachment.html>
陳韋任 (Wei-Ren Chen)
2013-Feb-27 06:52 UTC
[LLVMdev] any option can control final linker choice in LLVM?
On Tue, Feb 26, 2013 at 11:24:39PM +0800, Wei Tang wrote:> Hi All, > I want to build cross compiler with LLVM-3.2 for X86, and hope LLVM > compiler driver to pick up linker located > in cross toolchain directory. It seems LLVM driver always chooses system linker > "/usr/bin/ld" by default. > Any option can be used to control? Thanks in advance!I remember clang [1] already provide a option for specifying the linker you want to use. But I think it should pick the right one, do you give clang the right triple? Regards, chenwj [1] http://clang.llvm.org/ -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj
Wei Tang
2013-Feb-27 07:16 UTC
[LLVMdev] any option can control final linker choice in LLVM?
Yes, Brooks has told me the option and it works. Thanks a lot! -B/path/to/directory/that/ld/resides/in wei On Wed, Feb 27, 2013 at 2:52 PM, 陳韋任 (Wei-Ren Chen) < chenwj at iis.sinica.edu.tw> wrote:> On Tue, Feb 26, 2013 at 11:24:39PM +0800, Wei Tang wrote: > > Hi All, > > I want to build cross compiler with LLVM-3.2 for X86, and hope LLVM > > compiler driver to pick up linker located > > in cross toolchain directory. It seems LLVM driver always chooses system > linker > > "/usr/bin/ld" by default. > > Any option can be used to control? Thanks in advance! > > I remember clang [1] already provide a option for specifying the > linker you want to use. But I think it should pick the right one, > do you give clang the right triple? > > Regards, > chenwj > > [1] http://clang.llvm.org/ > > -- > Wei-Ren Chen (陳韋任) > Computer Systems Lab, Institute of Information Science, > Academia Sinica, Taiwan (R.O.C.) > Tel:886-2-2788-3799 #1667 > Homepage: http://people.cs.nctu.edu.tw/~chenwj >-- Best Regards tangwei -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130227/c5887808/attachment.html>