Guest User

Untitled

a guest
Mar 13th, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. MEMORY {
  2. FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 16K
  3. RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 2K
  4. }
  5.  
  6. SECTIONS {
  7. .text : {
  8. *(.text.boot)
  9. *(.text*)
  10. *(.vector_table)
  11. } > FLASH
  12.  
  13. /* Calculate positions from end of RAM */
  14. .data ORIGIN(RAM) + LENGTH(RAM) - SIZEOF(.data) : {
  15. _data_start = .;
  16. *(.data*)
  17. *(.sdata*)
  18. . = ALIGN(4);
  19. _data_end = .;
  20. } > RAM AT > FLASH
  21.  
  22. /* BSS comes before data */
  23. .bss (_data_start - SIZEOF(.bss) - SIZEOF(.sbss)) : {
  24. _bss_start = .;
  25. *(.bss*)
  26. *(.sbss*)
  27. *(COMMON)
  28. . = ALIGN(4);
  29. _bss_end = .;
  30. } > RAM
  31.  
  32. /* Stack starts at the bottom of BSS */
  33. _stack_top = _bss_start;
  34. _stack_bottom = ORIGIN(RAM);
  35.  
  36. /* Critical symbols for initialization */
  37. _data_load = LOADADDR(.data);
  38. }
  39.  
Advertisement
Add Comment
Please, Sign In to add comment