miniminater

Untitled

Aug 17th, 2023
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. MEMORY
  2. {
  3. rom (rx) : ORIGIN = 0x000000, LENGTH = 0x02000
  4. ram (rwx) : ORIGIN = 0x002000, LENGTH = 0x01FFE0 /* 0x3FFFFF - 0x002000 */
  5. ram_cont (rwx) : ORIGIN = 0xFF0000, LENGTH = 0x010000 /* 0xFFFFFF - 0xFF0000 */
  6. }
  7.  
  8. STACK_SIZE = 0x100;
  9.  
  10. /* Section Definitions */
  11. SECTIONS
  12. {
  13. .text :
  14. {
  15. KEEP(*(.vectors .vectors.*))
  16. _stext = .;
  17. *(.text.*)
  18. *(.rodata.*)
  19. _etext = .;
  20. } > rom
  21.  
  22. .bss (NOLOAD) :
  23. {
  24. _sbss = . ;
  25. *(.bss .bss.*)
  26. *(COMMON)
  27. _ebss = . ;
  28. } > ram
  29.  
  30. .data :
  31. {
  32. _sdata = .;
  33. *(.data*);
  34. _edata = .;
  35. } > ram
  36.  
  37. /* stack section */
  38. .stack (NOLOAD):
  39. {
  40. _sstack = .;
  41. . = ALIGN(8);
  42. . = . + STACK_SIZE;
  43. . = ALIGN(8);
  44. _estack = .;
  45. } > ram
  46.  
  47. /* Additional RAM section */
  48. .ram_cont :
  49. {
  50. _sram_cont = .;
  51. *(.ram_cont*)
  52. _eram_cont = .;
  53. } > ram_cont
  54.  
  55. _end = . ;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment