Do you have a question? Post it now! No Registration Necessary
January 14, 2009, 11:06 am

Hi everyone,
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 get rid of this warning.
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) }
}
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 get rid of this warning.
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) }
}
Site Timeline
- » Diagnosing a system lockup
- — Next thread in » Embedded Linux
-
- » A unique Embedded Training with placement assistance
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Co wetknÄ…c w dziury o rastrze 1.27?
- — The site's Newest Thread. Posted in » Electronics (Polish)
-