On Mon, Aug 1, 2011 at 12:12 PM, Rohit Arul Raj <rohitarul...@gmail.com> wrote:
> Hello All,
>
> I compiled a simple 1.c file with -mpcu=e500mc64 option and while
> trying to create a relocatable, i am getting the following error:
>
> $powerpc-elf-ld.exe -static -r 1.o
> powerpc-elf-ld.exe: Relocatable linking with relocations from format
> elf64-powerpc (1.o) to format elf32-powerpc (a.out) is not supported
>
>
> $ powerpc-elf-ld.exe -static -r 1.o --oformat elf64-powerpc
> powerpc-elf-ld.exe: Relocatable linking with relocations from format
> elf64-powerpc (1.o) to format elf64-powerpc (a.out) is not supported
>
> Is relocatable linking not allowed for 64bit PPC?
>
> Regards,
> Rohit
>

Yeah got it.. "-m elf64ppc"

I was trying with '-m64' option which worked with  'powerpc-linux'
tool chain but doesn't work with 'powerpc-elf' toolchain.

Thanks,
Rohit

Reply via email to