[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Relocation in generic ELF problem
From: |
Alan Modra |
Subject: |
Re: Relocation in generic ELF problem |
Date: |
Tue, 24 Apr 2007 23:21:19 +0930 |
User-agent: |
Mutt/1.5.9i |
On Mon, Apr 23, 2007 at 07:43:59PM +0530, aniruddha wrote:
> g++ -c -o test1.o test1.cpp
> /home/buildroot/build_arm/staging_dir/bin/arm-linux-uclibc-g++ --static
> -o test1 test1.o
>
> /home/buildroot/build_arm/staging_dir/lib/gcc/arm-linux-uclibc/3.4.6/../../../../arm-linux-uclibc/bin/ld:
> test1.o: Relocatns in generic ELF (EM: 3)
You are compiling test1.cpp with an x86 g++. Unsurprisingly, your arm
linker does not like x86 object files.
--
Alan Modra
IBM OzLabs - Linux Technology Centre