warning: dot moved backwards before '.data'
Alan Modra
amodra@bigpond.net.au
Wed Jan 14 21:56:00 GMT 2009
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
More information about the Binutils
mailing list