tic30coff.sc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Copyright (C) 2014-2015 Free Software Foundation, Inc.
  2. #
  3. # Copying and distribution of this file, with or without modification,
  4. # are permitted in any medium without royalty provided the copyright
  5. # notice and this notice are preserved.
  6. cat <<EOF
  7. /* Copyright (C) 2014-2015 Free Software Foundation, Inc.
  8. Copying and distribution of this script, with or without modification,
  9. are permitted in any medium without royalty provided the copyright
  10. notice and this notice are preserved. */
  11. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  12. OUTPUT_ARCH("${OUTPUT_ARCH}")
  13. MEMORY
  14. {
  15. rom : ORIGIN = 0x00000300, LENGTH = 16k
  16. ram : ORIGIN = 0x00000300 + 16k, LENGTH = 16k
  17. ramblk0 : ORIGIN = 0x02026000, LENGTH = 0x1000
  18. ramblk1 : ORIGIN = 0x02027000, LENGTH = 0x1000
  19. }
  20. SECTIONS
  21. {
  22. .vectors 0x00000000 :
  23. {
  24. *(vectors)
  25. }
  26. .text :
  27. {
  28. *(.text)
  29. } > rom
  30. .const :
  31. {
  32. *(.const)
  33. __etext = . ;
  34. } > rom
  35. .mdata : AT( ADDR(.const) + SIZEOF(.const) )
  36. {
  37. __data = . ;
  38. *(.data);
  39. __edata = . ;
  40. } > ram
  41. .bss :
  42. {
  43. __bss = . ;
  44. *(.bss);
  45. *(COMMON);
  46. __ebss = . ;
  47. } > ram
  48. .ram0 :
  49. {
  50. *(ram0)
  51. } > ramblk0
  52. .ram1 :
  53. {
  54. *(ram1)
  55. } > ramblk1
  56. }
  57. EOF