public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Regarding Linker Script
@ 2008-03-25 10:24 Dileep Kumar
  2008-03-25 10:50 ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: Dileep Kumar @ 2008-03-25 10:24 UTC (permalink / raw)
  To: ecos-discuss

Hi All,

In a liker script file what is the meaning of   this line

.fini ALIGN (0x4) : { . = .; *(.fini) } > ram

What is the function of ALIGN here ? Is it reserves some memory to the section
.fini ?

Also what is the meaning of    .  =  .  ?


Thanks
Dileep Kumar

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] Regarding Linker Script
  2008-03-25 10:24 [ECOS] Regarding Linker Script Dileep Kumar
@ 2008-03-25 10:50 ` Andrew Lunn
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2008-03-25 10:50 UTC (permalink / raw)
  To: Dileep Kumar; +Cc: eCos Disuss

On Tue, Mar 25, 2008 at 03:47:49PM +0530, Dileep Kumar wrote:
> Hi All,
> 
> In a liker script file what is the meaning of   this line
> 
> .fini ALIGN (0x4) : { . = .; *(.fini) } > ram
> 
> What is the function of ALIGN here ? Is it reserves some memory to the section
> .fini ?
> 
> Also what is the meaning of    .  =  .  ?

http://sourceware.org/binutils/docs-2.16/ld/Scripts.html#Scripts

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] Regarding Linker Script
  2008-03-25 11:27 Dileep Kumar
@ 2008-03-26 12:30 ` Andrew Lunn
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2008-03-26 12:30 UTC (permalink / raw)
  To: Dileep Kumar; +Cc: ecos-discuss

On Tue, Mar 25, 2008 at 04:20:09PM +0530, Dileep Kumar wrote:
> Hi,
> Could you please tell me, what will be the location counter value in each line ?
> Also where  .vectors section is loaded ?

arm-elf-objdump --headers myprog.elf

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ECOS] Regarding Linker Script
@ 2008-03-25 11:27 Dileep Kumar
  2008-03-26 12:30 ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: Dileep Kumar @ 2008-03-25 11:27 UTC (permalink / raw)
  To: ecos-discuss

Hi,
Could you please tell me, what will be the location counter value in each line ?
Also where  .vectors section is loaded ?

MEMORY
{
    ram : ORIGIN = 0x00020000, LENGTH = 0x1000000
}

SECTIONS
{

    __reserved_vectors = 0; . = __reserved_vectors + 0x3000;
    __reserved_vsr_table = ALIGN (0x10); . = __reserved_vsr_table + 0x200;
    __reserved_virtual_table = ALIGN (0x10); . =
__reserved_virtual_table + 0x100;
    __reserved_for_rom = ALIGN (0x10); . = __reserved_for_rom + 0x1cd00;
    .vectors ALIGN (0x10) : { . = .; KEEP(*(.vectors)) } > ram
    .text ALIGN (0x4) : { _stext = .; *(.text*) *(.gnu.warning)
*(.gnu.linkonce*) *(.init) } > ram _etext = .; PROVIDE (etext = .);
  .............................
...........................
}


Thanks
Dileep Kumar

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-25 11:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-25 10:24 [ECOS] Regarding Linker Script Dileep Kumar
2008-03-25 10:50 ` Andrew Lunn
2008-03-25 11:27 Dileep Kumar
2008-03-26 12:30 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).