This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |