34 lines
679 B
Plaintext
34 lines
679 B
Plaintext
/* from https://github.com/ambiot/amb1_sdk/blob/master/project/realtek_amebaz_va0_example/GCC-RELEASE/export-rom_symbol_v01.txt */
|
|
INCLUDE "export-rom_symbol_v01.txt"
|
|
|
|
MEMORY {
|
|
ram (rwx) : ORIGIN = _RAM_ORIGIN, LENGTH = _RAM_SIZE
|
|
}
|
|
|
|
ASSERT(_RAM_ORIGIN + _RAM_SIZE <= _WORK_AREA_START, "Firmware overlaps with OpenOCD work area!")
|
|
|
|
SECTIONS {
|
|
.text : {
|
|
*(.vectors)
|
|
*(.text*)
|
|
*(.rodata*)
|
|
. = ALIGN(4);
|
|
} > ram
|
|
|
|
.data : {
|
|
. = ALIGN(4);
|
|
*(.data*)
|
|
. = ALIGN(4);
|
|
} > ram
|
|
|
|
.bss : {
|
|
. = ALIGN(4);
|
|
*(.bss*)
|
|
*(COMMON)
|
|
. = ALIGN(4);
|
|
} > ram
|
|
|
|
end = .;
|
|
__end__ = .;
|
|
}
|