elf32xc16x.sc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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(${ARCH})
  13. ${RELOCATING+ENTRY ("_start")}
  14. MEMORY
  15. {
  16. vectarea : o =0x00000, l = 0x0300
  17. introm : o = 0x00400, l = 0x16000
  18. /* The stack starts at the top of main ram. */
  19. dram : o = 0x8000 , l = 0xffff
  20. /* At the very top of the address space is the 8-bit area. */
  21. ldata : o =0x4000 ,l = 0x0200
  22. }
  23. SECTIONS
  24. {
  25. .init :
  26. {
  27. *(.init)
  28. } ${RELOCATING+ >introm}
  29. .text :
  30. {
  31. *(.rodata)
  32. *(.text.*)
  33. *(.text)
  34. ${RELOCATING+ _etext = . ; }
  35. } ${RELOCATING+ > introm}
  36. .data :
  37. {
  38. *(.data)
  39. *(.data.*)
  40. ${RELOCATING+ _edata = . ; }
  41. } ${RELOCATING+ > dram}
  42. .bss :
  43. {
  44. ${RELOCATING+ _bss_start = . ;}
  45. *(.bss)
  46. *(COMMON)
  47. ${RELOCATING+ _end = . ; }
  48. } ${RELOCATING+ > dram}
  49. .ldata :
  50. {
  51. *(.ldata)
  52. } ${RELOCATING+ > ldata}
  53. .vects :
  54. {
  55. *(.vects)
  56. } ${RELOCATING+ > vectarea}
  57. }
  58. EOF