public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Help with PPC Relocation options
@ 2011-08-01  6:42 Rohit Arul Raj
  2011-08-01  7:08 ` Rohit Arul Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Rohit Arul Raj @ 2011-08-01  6:42 UTC (permalink / raw)
  To: gcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help with PPC Relocation options
  2011-08-01  6:42 Help with PPC Relocation options Rohit Arul Raj
@ 2011-08-01  7:08 ` Rohit Arul Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Rohit Arul Raj @ 2011-08-01  7:08 UTC (permalink / raw)
  To: gcc

On Mon, Aug 1, 2011 at 12:12 PM, Rohit Arul Raj <rohitarulraj@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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-01  7:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-01  6:42 Help with PPC Relocation options Rohit Arul Raj
2011-08-01  7:08 ` Rohit Arul Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).