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]

Re: Assembler message: "unsupported relocation type" with MPC555 crosscompiler


i ran powerpc-eabi-gcc

	powerpc-eabi-gcc -g -S -mcpu=555 -I../../mpc555/include main.c

and looked into main.s


#231:	.LM18:
#232:		 mtspr EIE, r3 
#233:	.stabn 68,0,44,.LM19-main

the "move to special purpose register" looks good, for my opinion.

i don't understand the reason of the error? what does it mean, if there
is a problem with an allocaion type?

Thanks for ideas and comments,
Matthias




"William A. Gatliff" schrieb:
> 
> Matthias:
> 
> >       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
> 
> Run the source file through gcc with -g -S, and have a look at line
> 232.  This could be a gcc or assembler problem, knowing what the
> offending instruction is would help.
> 
> > 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!
> 
> The linker will write an output file, using ELF, EABI or some other
> format (depending on what you tell it) that contains your program.
> Use objcopy to convert it to S-record or Hex, and use a chip burner to
> burn it into the flash on your target system.
> 
> You could also feed the output file to gdb and debug remotely, if your
> target hardware has a suitable debugging agent.  See my article on
> implementing a remote debugging agent at http://billgatliff.com for
> more on what I'm talking about.
> 
> b.g.
> --
> Bill Gatliff
> bgat@billgatliff.com
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

------
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]