tm4c_rom.ld 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /******************************************************************************
  2. *
  3. * blinky.ld - Linker configuration file for blinky.
  4. *
  5. * Copyright (c) 2013-2014 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.0.12573 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 = 0x100;
  31. SECTIONS
  32. {
  33. .text :
  34. {
  35. . = ALIGN(4);
  36. _stext = .;
  37. KEEP(*(.isr_vector)) /* Startup code */
  38. . = ALIGN(4);
  39. *(.text) /* remaining code */
  40. *(.text.*) /* remaining code */
  41. *(.rodata) /* read-only data (constants) */
  42. *(.rodata*)
  43. *(.glue_7)
  44. *(.glue_7t)
  45. *(.gnu.linkonce.t*)
  46. /* section information for finsh shell */
  47. . = ALIGN(4);
  48. __fsymtab_start = .;
  49. KEEP(*(FSymTab))
  50. __fsymtab_end = .;
  51. . = ALIGN(4);
  52. __vsymtab_start = .;
  53. KEEP(*(VSymTab))
  54. __vsymtab_end = .;
  55. . = ALIGN(4);
  56. /* section information for initial. */
  57. . = ALIGN(4);
  58. __rt_init_start = .;
  59. KEEP(*(SORT(.rti_fn*)))
  60. __rt_init_end = .;
  61. . = ALIGN(4);
  62. . = ALIGN(4);
  63. _etext = .;
  64. } > CODE = 0
  65. /* .ARM.exidx is sorted, so has to go in its own output section. */
  66. __exidx_start = .;
  67. .ARM.exidx :
  68. {
  69. *(.ARM.exidx* .gnu.linkonce.armexidx.*)
  70. /* This is used by the startup in order to initialize the .data secion */
  71. _sidata = .;
  72. } > CODE
  73. __exidx_end = .;
  74. /* .data section which is used for initialized data */
  75. .data : AT (_sidata)
  76. {
  77. . = ALIGN(4);
  78. /* This is used by the startup in order to initialize the .data secion */
  79. _data = . ;
  80. *(.data)
  81. *(.data.*)
  82. *(.gnu.linkonce.d*)
  83. . = ALIGN(4);
  84. /* This is used by the startup in order to initialize the .data secion */
  85. _edata = . ;
  86. } >DATA
  87. .stack :
  88. {
  89. . = . + _system_stack_size;
  90. . = ALIGN(4);
  91. _estack = .;
  92. } >DATA
  93. __bss_start = .;
  94. .bss :
  95. {
  96. . = ALIGN(4);
  97. /* This is used by the startup in order to initialize the .bss secion */
  98. _bss = .;
  99. *(.bss)
  100. *(.bss.*)
  101. *(COMMON)
  102. . = ALIGN(4);
  103. /* This is used by the startup in order to initialize the .bss secion */
  104. _ebss = . ;
  105. *(.bss.init)
  106. } > DATA
  107. __bss_end = .;
  108. _end = .;
  109. /* Stabs debugging sections. */
  110. .stab 0 : { *(.stab) }
  111. .stabstr 0 : { *(.stabstr) }
  112. .stab.excl 0 : { *(.stab.excl) }
  113. .stab.exclstr 0 : { *(.stab.exclstr) }
  114. .stab.index 0 : { *(.stab.index) }
  115. .stab.indexstr 0 : { *(.stab.indexstr) }
  116. .comment 0 : { *(.comment) }
  117. /* DWARF debug sections.
  118. * Symbols in the DWARF debugging sections are relative to the beginning
  119. * of the section so we begin them at 0. */
  120. /* DWARF 1 */
  121. .debug 0 : { *(.debug) }
  122. .line 0 : { *(.line) }
  123. /* GNU DWARF 1 extensions */
  124. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  125. .debug_sfnames 0 : { *(.debug_sfnames) }
  126. /* DWARF 1.1 and DWARF 2 */
  127. .debug_aranges 0 : { *(.debug_aranges) }
  128. .debug_pubnames 0 : { *(.debug_pubnames) }
  129. /* DWARF 2 */
  130. .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
  131. .debug_abbrev 0 : { *(.debug_abbrev) }
  132. .debug_line 0 : { *(.debug_line) }
  133. .debug_frame 0 : { *(.debug_frame) }
  134. .debug_str 0 : { *(.debug_str) }
  135. .debug_loc 0 : { *(.debug_loc) }
  136. .debug_macinfo 0 : { *(.debug_macinfo) }
  137. /* SGI/MIPS DWARF 2 extensions */
  138. .debug_weaknames 0 : { *(.debug_weaknames) }
  139. .debug_funcnames 0 : { *(.debug_funcnames) }
  140. .debug_typenames 0 : { *(.debug_typenames) }
  141. .debug_varnames 0 : { *(.debug_varnames) }
  142. }