relocating files
"Robles Román, José Miguel"
jmrroman@indra.es
Thu Jul 25 01:29:00 GMT 2002
Hello,
Once again, with the help of link script you can relocate your code wherever
you want. I think next line would work.
SECTIONS
{
...
.text: 0x30000 { *(.text) }
...
}
In http://www.gnu.org/manual/ld-2.9.1/ld.html you can see the document
"Using LD - the GNU Linker", where you will find much more valuable information.
Regards,
José Miguel
-----Mensaje original-----
De: Vinayak P Risbud [mailto:vinayak@multitech.co.in]
Enviado el: jueves, 25 de julio de 2002 8:55
Para: crossgcc@sources.redhat.com
Asunto: relocating files
Hi,
My question is very simple.
I have compiled a "Hello.c" on arm-elf-gcc
cross compiler. But, the output binary is
statically linked at location 0x8000.
I want to relocate the binary at 0x30000
How can I do this ?
Thanks in advance
Vinayak
------
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
More information about the crossgcc
mailing list