lm4f_rom.ld 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /******************************************************************************
  2. *
  3. * lm4f_rom.ld - Linker configuration file for project.
  4. *
  5. * Copyright (c) 2011 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 8264 of the EK-LM4F232 Firmware Package.
  22. *
  23. *****************************************************************************/
  24. /* Program Entry, set to mark it as "used" and avoid gc */
  25. MEMORY
  26. {
  27. CODE (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000
  28. DATA (rw) : ORIGIN = 0x10000000, LENGTH = 0x00008000
  29. }
  30. ENTRY(Reset_Handler)
  31. _system_stack_size = 0x200;
  32. SECTIONS
  33. {
  34. .text :
  35. {
  36. . = ALIGN(4);
  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. . = ALIGN(4);
  57. __rt_init_start = .;
  58. KEEP(*(SORT(.rti_fn*)))
  59. __rt_init_end = .;
  60. . = ALIGN(4);
  61. PROVIDE(__ctors_start__ = .);
  62. /* old GCC version uses .ctors */
  63. KEEP(*(SORT(.ctors.*)))
  64. KEEP(*(.ctors))
  65. /* new GCC version uses .init_array */
  66. KEEP (*(SORT(.init_array.*)))
  67. KEEP (*(.init_array))
  68. PROVIDE(__ctors_end__ = .);
  69. . = ALIGN(4);
  70. _etext = .;
  71. } > CODE = 0
  72. .ARM.extab :
  73. {
  74. *(.ARM.extab*)
  75. . = ALIGN(4);
  76. /* This is used by the startup in order to initialize the .data secion */
  77. _sidata = .;
  78. } > CODE
  79. /* .data section which is used for initialized data */
  80. .data : AT (_sidata)
  81. {
  82. . = ALIGN(4);
  83. PROVIDE(__dtors_start__ = .);
  84. KEEP(*(SORT(.dtors.*)))
  85. KEEP(*(.dtors))
  86. PROVIDE(__dtors_end__ = .);
  87. . = ALIGN(4);
  88. /* This is used by the startup in order to initialize the .data secion */
  89. _sdata = . ;
  90. *(.data)
  91. *(.data.*)
  92. *(.gnu.linkonce.d*)
  93. . = ALIGN(4);
  94. /* This is used by the startup in order to initialize the .data secion */
  95. _edata = . ;
  96. } > DATA
  97. .stack :
  98. {
  99. . = . + _system_stack_size;
  100. . = ALIGN(4);
  101. _estack = .;
  102. } >DATA
  103. __bss_start = .;
  104. .bss :
  105. {
  106. . = ALIGN(4);
  107. /* This is used by the startup in order to initialize the .bss secion */
  108. _sbss = .;
  109. *(.bss)
  110. *(.bss.*)
  111. *(COMMON)
  112. . = ALIGN(4);
  113. /* This is used by the startup in order to initialize the .bss secion */
  114. _ebss = . ;
  115. *(.bss.init)
  116. } > DATA
  117. __bss_end = .;
  118. _end = .;
  119. /* Stabs debugging sections. */
  120. .stab 0 : { *(.stab) }
  121. .stabstr 0 : { *(.stabstr) }
  122. .stab.excl 0 : { *(.stab.excl) }
  123. .stab.exclstr 0 : { *(.stab.exclstr) }
  124. .stab.index 0 : { *(.stab.index) }
  125. .stab.indexstr 0 : { *(.stab.indexstr) }
  126. .comment 0 : { *(.comment) }
  127. /* DWARF debug sections.
  128. * Symbols in the DWARF debugging sections are relative to the beginning
  129. * of the section so we begin them at 0. */
  130. /* DWARF 1 */
  131. .debug 0 : { *(.debug) }
  132. .line 0 : { *(.line) }
  133. /* GNU DWARF 1 extensions */
  134. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  135. .debug_sfnames 0 : { *(.debug_sfnames) }
  136. /* DWARF 1.1 and DWARF 2 */
  137. .debug_aranges 0 : { *(.debug_aranges) }
  138. .debug_pubnames 0 : { *(.debug_pubnames) }
  139. /* DWARF 2 */
  140. .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
  141. .debug_abbrev 0 : { *(.debug_abbrev) }
  142. .debug_line 0 : { *(.debug_line) }
  143. .debug_frame 0 : { *(.debug_frame) }
  144. .debug_str 0 : { *(.debug_str) }
  145. .debug_loc 0 : { *(.debug_loc) }
  146. .debug_macinfo 0 : { *(.debug_macinfo) }
  147. /* SGI/MIPS DWARF 2 extensions */
  148. .debug_weaknames 0 : { *(.debug_weaknames) }
  149. .debug_funcnames 0 : { *(.debug_funcnames) }
  150. .debug_typenames 0 : { *(.debug_typenames) }
  151. .debug_varnames 0 : { *(.debug_varnames) }
  152. }