[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
linkcmds file
- Date: Wed, 07 Oct 2009 15:04:22 +1100
- From: chrisj at rtems.org (Chris Johns)
- Subject: linkcmds file
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
- Follow-Ups:
- linkcmds file
- From: tcheewan at ntu.edu.sg (Teng Chee Wan Philip)
- References:
- linkcmds file
- From: tcheewan at ntu.edu.sg (Teng Chee Wan Philip)