This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fwd: request for assistance in using binutils to link a .o which was cross-compiled to mips64 using Clang/LLVM
- From: Daniel Wilkerson <daniel dot wilkerson at gmail dot com>
- To: Binutils <binutils at sourceware dot org>
- Cc: Andrew Pinski <pinskia at gmail dot com>
- Date: Thu, 3 Jul 2014 17:59:16 -0700
- Subject: Fwd: request for assistance in using binutils to link a .o which was cross-compiled to mips64 using Clang/LLVM
- Authentication-results: sourceware.org; auth=none
- References: <CALzRTRkWA-K3jjPRSmTOpV_Nxx==vuVSMc027KeKJ3EkYW3tHw at mail dot gmail dot com> <CA+=Sn1khVkpR6KAZ1BEtxfhbmUizbwWRsOiqFt4uKotzrH-7YQ at mail dot gmail dot com> <CALzRTRnPB42+Ox_-oB=zFFmEzUeQu42iELW6X_U68yEbgnCwEg at mail dot gmail dot com> <CA+=Sn1mgagtfssH+s1ugAsbhCGtNvfKe7-16qRt8qCS=feuMOQ at mail dot gmail dot com> <CALzRTRkcGfTZUdPsHt++OvVsjJtfZvC-4fiyQ5WLU+zmB3jfPQ at mail dot gmail dot com>
I should have sent this to the list as well: -melf64btsmip
does not seem to be working (see below).
I seem to be missing something here about how to configure and use
binutils. Can I trouble someone to fill me in on the basic approach?
I want to link MIPS64 .o files, in particular those generated by
Clang/LLVM with their integrated assembler, like this:
clang++ -target mips64 -integrated-as -c -O0 -g -o zero.mips64_o zero.cc
Daniel
---------- Forwarded message ----------
From: Daniel Wilkerson <daniel.wilkerson@gmail.com>
Date: Wed, Jul 2, 2014 at 3:34 PM
Subject: Re: request for assistance in using binutils to link a .o
which was cross-compiled to mips64 using Clang/LLVM
To: Andrew Pinski <pinskia@gmail.com>
On Wed, Jul 2, 2014 at 2:33 PM, Andrew Pinski <pinskia@gmail.com> wrote:
> The option to ld you need is:
> -melf64btsmip
> or
> -melf64ltsmip
>
> Depending on if you are doing big or little-endian.
/home/dsw/gcc-4.8.3-mips64/bin/mips64-ld -melf64btsmip -o zero zero.o
/home/dsw/gcc-4.8.3-mips64/bin/mips64-ld: unrecognised emulation mode:
elf64btsmip
Supported emulations: elf32ebmip
make: *** [zero] Error 1
Daniel