This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: warning: dot moved backwards before '.data'
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Dae-Hyun Ahn <optiahn at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 15 Jan 2009 08:25:21 +1030
- Subject: Re: warning: dot moved backwards before '.data'
- References: <38284e020901140622x55d1be55g8f149966b8d6bed@mail.gmail.com>
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