This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: question on cross-compilation with specs...


Hi,

I built the hello program using xscale-elf-gcc with redboot specs. It
gave me a .out file. But I tried loading it using redboot and running
it, I could not. What's wrong?

Thanks,
IG.

-----Original Message-----
From: Muthukumar Ratty [mailto:muthu@iqmail.net] 
Sent: Friday, May 28, 2004 10:42 AM
To: Hiremath, Indudharswamy
Cc: gcc-help@gcc.gnu.org
Subject: Re: question on cross-compilation with specs...


Hi

>
> based on an XScale ASSP how do I make sure the compiler uses the
correct
> memory map?

You need to use linker script to specify how the linker should arrange
different sections. Please look into ld manual for more information.
Also
you can look at how its done for linux (for i386 the script is called
vmlinux.lds. BTW its passed to ld by -T option)

Regards,
Muthu.



>
>
> $ xscale-elf-gcc foo.c -specs=redboot.specs -mbig-endian
>


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