linkcmds file
Chris Johns
chrisj at rtems.org
Wed Oct 7 04:04:22 UTC 2009
Teng Chee Wan Philip wrote:
> Hi,
>
> I need some help here. I am thinking of locating my application .text section to a different location from the operating system .text. Currently, in the linkcmds file, all the .text sections are located together because of the *(.text*) input section description. The envisaged memory map goes like this:
>
> .text (operating system) 0x02000000
> .text (applications, xx.o, yy.o) 0x02080000
> .data (os + apps) following .text
> .bss 0x02100000
>
> Does anyone know how I can modify the linkcmds file to achieve that? Any help will be greatly appreciated. Thanks.
>
Take a look at this page:
http://sourceware.org/binutils/docs-2.19/ld/Input-Section-Basics.html#Input-Section-Basics
and specifically the part on including sections for a specific file.
Maybe that can help. The complication comes with other data in the flash
or ROM memory that is part of the application but not at the separated
address
Why do want to keep the application code separate ?
Regards
Chris
More information about the users
mailing list