KeyStone.cmd 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /****************************************************************************/
  2. /* */
  3. /* M6678.cmd */
  4. /* Copyright (c): NUDT */
  5. /* */
  6. /* */
  7. /* Description: This file is a sample linker command file that can be */
  8. /* used for linking programs built with the C compiler and */
  9. /* running the resulting .out file on an M6678 */
  10. /* device. Use it as a guideline. You will want to */
  11. /* change the memory layout to match your specific C6xxx */
  12. /* target system. You may want to change the allocation */
  13. /* scheme according to the size of your program. */
  14. /* */
  15. /* */
  16. /****************************************************************************/
  17. -heap 0x800
  18. -stack 0x1000
  19. MEMORY
  20. {
  21. VECTORS: o = 0x00800000 l = 0x00000200
  22. LL2_CODE: o = 0x00800200 l = 0x0001FE00
  23. LL2_RW_DATA: o = 0x00820000 l = 0x00020000 /*set memory protection attribitue as read/write*/
  24. }
  25. SECTIONS
  26. {
  27. .vecs > VECTORS
  28. .text > LL2_CODE
  29. .cinit > LL2_CODE
  30. .const > LL2_CODE
  31. .switch > LL2_CODE
  32. .stack > LL2_RW_DATA
  33. GROUP
  34. {
  35. .neardata
  36. .rodata
  37. .bss
  38. } > LL2_RW_DATA
  39. .far > LL2_RW_DATA
  40. .fardata > LL2_RW_DATA
  41. .cio > LL2_RW_DATA
  42. .sysmem > LL2_RW_DATA
  43. }