This is the mail archive of the binutils@sources.redhat.com 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]

Re: Why do I have "UNKNOWN" relocs in my v850 crt*.o?


On Wed, Mar 24, 2004 at 04:32:41PM +0200, Bernd Jendrissek wrote:
> Then, the other day, I was overjoyed to see that both binutils and GCC
> supported v850, the processor the VeriFone SC5000 pinpad uses.  I now
> seem to have a toolchain that wants to work, but...
> 
> $ Reading specs from /usr/cross/lib/gcc-lib/v850/3.3.3/specs
> v850-gcc: unrecognized option `-nostdlibs'
> Configured with: /usr/src/home/rpmtest/tmp/BUILD/gcc-3.3.1/configure --srcdir=/usr/src/home/rpmtest/tmp/BUILD/gcc-3.3.1 --prefix=/usr/cross --mandir=/usr/cross/v850/man --infodir=/usr/cross/v850/info --target=v850 --with-gcc --with-as=/usr/cross/bin/v850-as --with-ld=/usr/cross/bin/v850-ld --with-slibdir=/lib --with-gxx-include-dir=/usr/cross/v850/mingw32/include/g++-v3 --without-x --disable-nls --disable-shared --enable-threads --enable-languages=c --enable-libgcj --disable-java-awt --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-sjlj-exceptions --with-dwarf3 --with-system-zlib

Try --target=v850-elf instead?

> Thread model: single
> gcc version 3.3.3
>  /usr/cross/bin/v850-ld -o foo -L ../../../SDK/Lib -L/usr/cross/lib/gcc-lib/v850/3.3.3 -L/usr/cross/lib/gcc-lib/v850/3.3.3/../../../../v850/lib ../../../SDK/Lib/crtPulsarPlus.o ../../../SDK/Lib/crt0.o AppMain.o -lgcc -lc -lgcc
> /usr/cross/bin/v850-ld: ../../../SDK/Lib/crtPulsarPlus.o: Relocations in generic ELF (EM: 36)
> ../../../SDK/Lib/crtPulsarPlus.o: could not read symbols: File in wrong format

How did you configure binutils?  It doesn't look right.

> $ objdump -b elf32-v850 -m v850 -r ../../../SDK/Lib/crtPulsarPlus.o

Use readelf, or use v850-objdump.


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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