forth.lds 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. OUTPUT_FORMAT("elf32-c33", "elf32-c33",
  2. "elf32-c33")
  3. OUTPUT_ARCH(c33)
  4. MEMORY
  5. {
  6. a0ram (rwx): ORIGIN = 0x00000000, LENGTH = 8k
  7. ivram (rwx): ORIGIN = 0x00080000, LENGTH = 12k
  8. dstram (rwx): ORIGIN = 0x00084000, LENGTH = 2k
  9. sdram (rwx): ORIGIN = 0x10000000, LENGTH = 32M
  10. }
  11. SECTIONS
  12. {
  13. .dst_ram : {
  14. __START_VectorTable = . ;
  15. } > dstram
  16. .a0ram : {
  17. *(.suspend_text)
  18. *(.suspend_rodata)
  19. *(.suspend_data)
  20. *(.suspend_bss)
  21. } > a0ram
  22. __dp = 0x10000000 ;
  23. .idma : {
  24. . = . + 2048 ;
  25. } > sdram
  26. .text : {
  27. __START_text = . ;
  28. forth.o(*.text)
  29. *(.text)
  30. } > sdram
  31. __END_text = . ;
  32. . = ALIGN(1024);
  33. .rodata : {
  34. __START_rodata = . ;
  35. *(.rodata)
  36. } > sdram
  37. __END_rodata = . ;
  38. .bss : {
  39. __START_bss = . ;
  40. *(.bss)
  41. } > sdram
  42. __END_bss = . ;
  43. .data : {
  44. __START_data = . ;
  45. *(.data)
  46. } > sdram
  47. __END_data = . ;
  48. . = ALIGN(1024);
  49. .forth_dict : {
  50. __START_forth_dict = . ;
  51. forth.o(*.forth_dict)
  52. } > sdram
  53. __END_forth_dict = . ;
  54. __START_idma = ADDR(.idma);
  55. __END_idma = __START_idma + SIZEOF(.idma);
  56. __START_data_lma = LOADADDR( .data );
  57. __END_data_lma = __START_data_lma + SIZEOF( .data );
  58. }