Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MEMORY {
- FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 16K
- RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 2K
- }
- SECTIONS {
- .text : {
- *(.text.boot)
- *(.text*)
- *(.vector_table)
- } > FLASH
- /* Calculate positions from end of RAM */
- .data ORIGIN(RAM) + LENGTH(RAM) - SIZEOF(.data) : {
- _data_start = .;
- *(.data*)
- *(.sdata*)
- . = ALIGN(4);
- _data_end = .;
- } > RAM AT > FLASH
- /* BSS comes before data */
- .bss (_data_start - SIZEOF(.bss) - SIZEOF(.sbss)) : {
- _bss_start = .;
- *(.bss*)
- *(.sbss*)
- *(COMMON)
- . = ALIGN(4);
- _bss_end = .;
- } > RAM
- /* Stack starts at the bottom of BSS */
- _stack_top = _bss_start;
- _stack_bottom = ORIGIN(RAM);
- /* Critical symbols for initialization */
- _data_load = LOADADDR(.data);
- }
Advertisement
Add Comment
Please, Sign In to add comment