This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
warning: dot moved backwards before '.data'
- From: "Dae-Hyun Ahn" <optiahn at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 14 Jan 2009 23:22:54 +0900
- Subject: warning: dot moved backwards before '.data'
I use the following link script file.
The section ".text.sram"'s execute-address is different from load-address.
If I execute arm-elf-ld, then the following warning is occurred.
=> warning: dot moved backwards before '.data'
The section ".data"'s execute-address is less than the section
".text.sram"'s one.
But their load-address is different each other..
I want to know the way getting rid of this warning except the way that
change the position of each sections.
Do you know the solution?
------------------------link script file---------------------------
SECTIONS {
.text 0x0000 : {
*(.init)
*(.text)
}
.text.sram 0xF000 : AT(LOADADDR(.text)+SIZEOF(.text)) {
*(.text.sram)
}
.data (LOADADDR(.text.sram) + SIZEOF(.text.sram)) : {
*(.data)
*(.rodata)
}
.bss (LOADADDR(.data) + SIZEOF(.data)) : {
__bss_start__ = .;
*(.bss)
__bss_end__ = .;
end = .;
}
.fini (LOADADDR(.bss) + SIZEOF(.bss)) : { *(.fini) }
.eh_frame : { *(.eh_frame) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.jcr : { *(.jcr) }
}