cpu/test/test.ld

30 lines
523 B
Plaintext
Raw Normal View History

2020-09-27 18:04:08 -06:00
ENTRY(_start)
MEMORY
{
ROM (rx) : ORIGIN = 0x00000000, LENGTH = 1024
2020-11-14 23:04:24 -07:00
RAM (rwx) : ORIGIN = 0x00100000, LENGTH = 1024
/* FLASH (rx) : ORIGIN = 0x00200000, LENGTH = 512 */
2020-09-27 18:04:08 -06:00
}
SECTIONS
{
.text :
{
2020-11-14 23:04:24 -07:00
/* . = ALIGN(4); */
2020-09-27 18:04:08 -06:00
_text = .;
*(.text*)
*(.rodata*)
_etext = .;
2020-11-14 23:04:24 -07:00
/* . = ALIGN(4); */
2020-09-27 18:04:08 -06:00
} > ROM
.data :
{
2020-11-14 23:04:24 -07:00
/* . = ALIGN(4); */
_data = .;
*(.data*)
_edata = .;
2020-11-14 23:04:24 -07:00
/* . = ALIGN(4); */
} > RAM /*AT> FLASH*/
2020-09-27 18:04:08 -06:00
}