This is the mail archive of the
mailing list for the GCC project.
RE: question on cross-compilation with specs...
- From: "Hiremath, Indudharswamy" <indudharswamy dot hiremath at intel dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 2 Jun 2004 16:51:47 +0530
- Subject: RE: question on cross-compilation with specs...
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?
From: Muthukumar Ratty [mailto:firstname.lastname@example.org]
Sent: Friday, May 28, 2004 10:42 AM
To: Hiremath, Indudharswamy
Subject: Re: question on cross-compilation with specs...
> based on an XScale ASSP how do I make sure the compiler uses the
> 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.
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)
> $ xscale-elf-gcc foo.c -specs=redboot.specs -mbig-endian