This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: warning: dot moved backwards before '.data'


On Wed, Jan 14, 2009 at 11:22:54PM +0900, Dae-Hyun Ahn wrote:
> ------------------------link script file---------------------------
> SECTIONS {
>         .text 0x0000 : {
>                 *(.init)
>                 *(.text)
>         }
> 
>         .text.sram 0xF000 : AT(LOADADDR(.text)+SIZEOF(.text)) {

Here you are setting the vma to 0xF000, and the lma to the end of .text

>                 *(.text.sram)
>         }
> 
>         .data (LOADADDR(.text.sram) + SIZEOF(.text.sram)) : {

but here you are setting the vma to the end of .text.sram lma,
which is quite weird, but leaving the lma unspecified.  You need to
specify the lma with AT.

>                 *(.data)
>                 *(.rodata)
>         }

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]