Add a common linker script with the memory map for the complete project

Use the correct physical addresses in the memory map, and instead translate the addresses during postprocessing with objcopy
This commit is contained in:
henryk@ploetzli.ch 2009-08-27 16:07:35 +00:00
parent fb6e5aa863
commit 2bfed17db2
5 changed files with 50 additions and 28 deletions

View file

@ -1,11 +1,13 @@
INCLUDE ../common/ldscript.common
SECTIONS
{
. = 0x00002000;
.text : { obj/fpgaimg.o(.text) *(.text) }
.rodata : { *(.rodata) }
. = 0x00200000;
.data : { *(.data) }
fpgaimage : {
obj/fpgaimg.o(.text) *(.text)
*(.rodata)
} >fpgaimage
.data : { *(.data) } >ram
__bss_start__ = .;
.bss : { *(.bss) }
.bss : { *(.bss) } >ram
__bss_end__ = .;
}