This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Assembler message: "unsupported relocation type" with MPC555 crosscompiler


hallo,

i want to build up a powerpc-eabi toolchain for the MPC555.
hence i downloaded the following sources:

	binutils2.10.1
	gcc2.95.3
	newlib1.9.0
	gdb5.2

and built up the toolchain as described on 

	http://crossgcc.billgatliff.com/crossgccfaq/t1.html

after installation i have the following binaries in the related
directory $PREFIX/bin

	cpp                     powerpc-eabi-c++filt  powerpc-eabi-objcopy
	gcjh                    powerpc-eabi-chill    powerpc-eabi-objdump
	gcov                    powerpc-eabi-g++      powerpc-eabi-protoize
	jcf-dump                powerpc-eabi-g77      powerpc-eabi-ranlib
	jv-scan                 powerpc-eabi-gasp     powerpc-eabi-readelf
	powerpc-eabi-addr2line  powerpc-eabi-gcc      powerpc-eabi-size
	powerpc-eabi-ar         powerpc-eabi-gcj      powerpc-eabi-strings
	powerpc-eabi-as         powerpc-eabi-ld       powerpc-eabi-strip
	powerpc-eabi-c++        powerpc-eabi-nm       powerpc-eabi-unprotoize


should be fine so far.

now i want to see if the compiler makes good work an i copied a little
piece (example 1) of code
delivered with the "MPC555 Interrupts"-manual. the makefile is written
for the diab-crosscompiler,
but i adapted the makefile for my needs (i think so). after executing
the following error message
occurs. the linker doesn't like the some type ... what type ... ?

	powerpc-eabi-gcc -g -c -mcpu=555 -I$(INCLUDES) -o main.o main.c
	/tmp/cckZyIqV.s: Assembler messages:
	/tmp/cckZyIqV.s:232: Error: unsupported relocation type
	/tmp/cckZyIqV.s:232: Error: unsupported relocation type
	make: *** [main.o] Fehler 1

perhaps the wrong version of binutils?
does anyone know where to get more detailed information about the
problem, or
perhaps the solution of the problem.

by the way:
if i have compiled the sources succesfully, how can i load the code on
my target platform ... yes i am a newbie!

thanks for your ideas and comments,

Matthias

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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