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:
1 parent
fb6e5aa863
commit
2bfed17db2
5 files changed
+50
-28
No files matched your search
+15
-7
@@ -1,13 +1,21 @@
|
||||
INCLUDE ../common/ldscript.common
|
||||
|
||||
ENTRY(Vector)
|
||||
SECTIONS
|
||||
{
|
||||
. = 0x00010000;
|
||||
.start : { obj/start.o(.text) }
|
||||
.text : { *(.text) }
|
||||
.rodata : { *(.rodata) }
|
||||
. = 0x00200000;
|
||||
.data : { *(.data) }
|
||||
.start : { obj/start.o(.text) } >osimage
|
||||
.text : {
|
||||
*(.text)
|
||||
*(.text.*)
|
||||
*(.glue_7)
|
||||
*(.glue_7t)
|
||||
} >osimage
|
||||
.rodata : {
|
||||
*(.rodata)
|
||||
*(.rodata*)
|
||||
} >osimage
|
||||
.data : { *(.data) } >ram
|
||||
__bss_start__ = .;
|
||||
.bss : { *(.bss) }
|
||||
.bss : { *(.bss) } >ram
|
||||
__bss_end__ = .;
|
||||
}
|
||||
Reference in new issue
Block a user