tic54xcoff.sc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Default linker script for c54x, TI COFF(1).
  2. # patterned after description in TI Assembler Tools PDF, SPRU102C, 7-53
  3. #
  4. # Copyright (C) 2014-2022 Free Software Foundation, Inc.
  5. #
  6. # Copying and distribution of this file, with or without modification,
  7. # are permitted in any medium without royalty provided the copyright
  8. # notice and this notice are preserved.
  9. test -z "$ENTRY" && ENTRY=_c_int00
  10. cat <<EOF
  11. /* Copyright (C) 2014-2022 Free Software Foundation, Inc.
  12. Copying and distribution of this script, with or without modification,
  13. are permitted in any medium without royalty provided the copyright
  14. notice and this notice are preserved. */
  15. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  16. OUTPUT_ARCH("${OUTPUT_ARCH}")
  17. MEMORY
  18. {
  19. /*PAGE 0 : */ prog (RXI) : ORIGIN = 0x00000080, LENGTH = 0xFF00
  20. /*PAGE 1 : */ data (W) : ORIGIN = 0x01000080, LENGTH = 0xFF80
  21. }
  22. ${RELOCATING+ENTRY (${ENTRY})}
  23. SECTIONS
  24. {
  25. .text :
  26. {
  27. ___text__ = .;
  28. *(.text)
  29. etext = .;
  30. ___etext__ = .;
  31. } > prog
  32. .data :
  33. {
  34. ___data__ = .;
  35. __data = .;
  36. *(.data)
  37. __edata = .;
  38. edata = .;
  39. ___edata__ = .;
  40. } > prog
  41. /* all other initialized sections should be allocated here */
  42. .cinit :
  43. {
  44. *(.cinit)
  45. } > prog
  46. .bss :
  47. {
  48. ___bss__ = .;
  49. __bss = .;
  50. *(.bss)
  51. *(COMMON)
  52. __ebss = .;
  53. end = .;
  54. ___end__ = .;
  55. } > data
  56. /* all other uninitialized sections should be allocated here */
  57. }
  58. EOF