This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: request for assistance in using binutils to link a .o which was cross-compiled to mips64 using Clang/LLVM


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]