tm4c_rom.ld 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /******************************************************************************
  2. *
  3. * blinky.ld - Linker configuration file for blinky.
  4. *
  5. * Copyright (c) 2013-2017 Texas Instruments Incorporated. All rights reserved.
  6. * Software License Agreement
  7. *
  8. * Texas Instruments (TI) is supplying this software for use solely and
  9. * exclusively on TI's microcontroller products. The software is owned by
  10. * TI and/or its suppliers, and is protected under applicable copyright
  11. * laws. You may not combine this software with "viral" open-source
  12. * software in order to form a larger program.
  13. *
  14. * THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
  15. * NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
  16. * NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  17. * A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
  18. * CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
  19. * DAMAGES, FOR ANY REASON WHATSOEVER.
  20. *
  21. * This is part of revision 2.1.4.178 of the DK-TM4C129X Firmware Package.
  22. *
  23. *****************************************************************************/
  24. MEMORY
  25. {
  26. CODE (rx) : ORIGIN = 0x00000000, LENGTH = 0x00100000
  27. DATA (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00040000
  28. }
  29. ENTRY(ResetISR)
  30. _system_stack_size = 0x200;
  31. SECTIONS
  32. {
  33. .text :
  34. {
  35. . = ALIGN(4);
  36. KEEP(*(.isr_vector)) /* Startup code */
  37. . = ALIGN(4);
  38. *(.text) /* remaining code */
  39. *(.text.*) /* remaining code */
  40. *(.rodata) /* read-only data (constants) */
  41. *(.rodata*)
  42. *(.glue_7)
  43. *(.glue_7t)
  44. *(.gnu.linkonce.t*)
  45. /* section information for finsh shell */
  46. . = ALIGN(4);
  47. __fsymtab_start = .;
  48. KEEP(*(FSymTab))
  49. __fsymtab_end = .;
  50. . = ALIGN(4);
  51. __vsymtab_start = .;
  52. KEEP(*(VSymTab))
  53. __vsymtab_end = .;
  54. . = ALIGN(4);
  55. . = ALIGN(4);
  56. __rt_init_start = .;
  57. KEEP(*(SORT(.rti_fn*)))
  58. __rt_init_end = .;
  59. . = ALIGN(4);
  60. PROVIDE(__ctors_start__ = .);
  61. /* old GCC version uses .ctors */
  62. KEEP(*(SORT(.ctors.*)))
  63. KEEP(*(.ctors))
  64. /* new GCC version uses .init_array */
  65. KEEP (*(SORT(.init_array.*)))
  66. KEEP (*(.init_array))
  67. PROVIDE(__ctors_end__ = .);
  68. . = ALIGN(4);
  69. _etext = .;
  70. } > CODE = 0
  71. .ARM.extab :
  72. {
  73. *(.ARM.extab*)
  74. . = ALIGN(4);
  75. /* This is used by the startup in order to initialize the .data secion */
  76. _sidata = .;
  77. } > CODE
  78. /* .data section which is used for initialized data */
  79. .data : AT (_sidata)
  80. {
  81. . = ALIGN(4);
  82. PROVIDE(__dtors_start__ = .);
  83. KEEP(*(SORT(.dtors.*)))
  84. KEEP(*(.dtors))
  85. PROVIDE(__dtors_end__ = .);
  86. . = ALIGN(4);
  87. /* This is used by the startup in order to initialize the .data secion */
  88. _sdata = . ;
  89. *(.data)
  90. *(.data.*)
  91. *(.gnu.linkonce.d*)
  92. . = ALIGN(4);
  93. /* This is used by the startup in order to initialize the .data secion */
  94. _edata = . ;
  95. } > DATA
  96. .stack :
  97. {
  98. . = . + _system_stack_size;
  99. . = ALIGN(4);
  100. _estack = .;
  101. } >DATA
  102. __bss_start = .;
  103. .bss :
  104. {
  105. . = ALIGN(4);
  106. /* This is used by the startup in order to initialize the .bss secion */
  107. _sbss = .;
  108. *(.bss)
  109. *(.bss.*)
  110. *(COMMON)
  111. . = ALIGN(4);
  112. /* This is used by the startup in order to initialize the .bss secion */
  113. _ebss = . ;
  114. *(.bss.init)
  115. } > DATA
  116. __bss_end = .;
  117. _end = .;
  118. /* Stabs debugging sections. */
  119. .stab 0 : { *(.stab) }
  120. .stabstr 0 : { *(.stabstr) }
  121. .stab.excl 0 : { *(.stab.excl) }
  122. .stab.exclstr 0 : { *(.stab.exclstr) }
  123. .stab.index 0 : { *(.stab.index) }
  124. .stab.indexstr 0 : { *(.stab.indexstr) }
  125. .comment 0 : { *(.comment) }
  126. /* DWARF debug sections.
  127. * Symbols in the DWARF debugging sections are relative to the beginning
  128. * of the section so we begin them at 0. */
  129. /* DWARF 1 */
  130. .debug 0 : { *(.debug) }
  131. .line 0 : { *(.line) }
  132. /* GNU DWARF 1 extensions */
  133. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  134. .debug_sfnames 0 : { *(.debug_sfnames) }
  135. /* DWARF 1.1 and DWARF 2 */
  136. .debug_aranges 0 : { *(.debug_aranges) }
  137. .debug_pubnames 0 : { *(.debug_pubnames) }
  138. /* DWARF 2 */
  139. .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
  140. .debug_abbrev 0 : { *(.debug_abbrev) }
  141. .debug_line 0 : { *(.debug_line) }
  142. .debug_frame 0 : { *(.debug_frame) }
  143. .debug_str 0 : { *(.debug_str) }
  144. .debug_loc 0 : { *(.debug_loc) }
  145. .debug_macinfo 0 : { *(.debug_macinfo) }
  146. /* SGI/MIPS DWARF 2 extensions */
  147. .debug_weaknames 0 : { *(.debug_weaknames) }
  148. .debug_funcnames 0 : { *(.debug_funcnames) }
  149. .debug_typenames 0 : { *(.debug_typenames) }
  150. .debug_varnames 0 : { *(.debug_varnames) }
  151. }