Guest User

Travis Goodspeed

a guest
Sep 6th, 2008
784
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Default linker script, for normal executables */
  2. OUTPUT_FORMAT("elf32-msp430","elf32-msp430","elf32-msp430")
  3. OUTPUT_ARCH(msp:16)
  4. MEMORY
  5. {
  6. text (rx) : ORIGIN = 0x8000, LENGTH = 0x7fe0
  7. data (rwx) : ORIGIN = 0x0200, LENGTH = 0x400,
  8. vectors (rw) : ORIGIN = 0xffe0, LENGTH = 0x20
  9. bootloader(rx) : ORIGIN = 0x0c00, LENGTH = 1K
  10. infomem(rx) : ORIGIN = 0x1000, LENGTH = 256
  11. infomemnobits(rx) : ORIGIN = 0x1000, LENGTH = 256
  12. }
  13. SECTIONS
  14. {
  15. /* Read-only sections, merged into text segment. */
  16. .hash : { *(.hash) }
  17. .dynsym : { *(.dynsym) }
  18. .dynstr : { *(.dynstr) }
  19. .gnu.version : { *(.gnu.version) }
  20. .gnu.version_d : { *(.gnu.version_d) }
  21. .gnu.version_r : { *(.gnu.version_r) }
  22. .rel.init : { *(.rel.init) }
  23. .rela.init : { *(.rela.init) }
  24. .rel.text :
  25. {
  26. *(.rel.text)
  27. *(.rel.text.*)
  28. *(.rel.gnu.linkonce.t*)
  29. }
  30. .rela.text :
  31. {
  32. *(.rela.text)
  33. *(.rela.text.*)
  34. *(.rela.gnu.linkonce.t*)
  35. }
  36. .rel.fini : { *(.rel.fini) }
  37. .rela.fini : { *(.rela.fini) }
  38. .rel.rodata :
  39. {
  40. *(.rel.rodata)
  41. *(.rel.rodata.*)
  42. *(.rel.gnu.linkonce.r*)
  43. }
  44. .rela.rodata :
  45. {
  46. *(.rela.rodata)
  47. *(.rela.rodata.*)
  48. *(.rela.gnu.linkonce.r*)
  49. }
  50. .rel.data :
  51. {
  52. *(.rel.data)
  53. *(.rel.data.*)
  54. *(.rel.gnu.linkonce.d*)
  55. }
  56. .rela.data :
  57. {
  58. *(.rela.data)
  59. *(.rela.data.*)
  60. *(.rela.gnu.linkonce.d*)
  61. }
  62. .rel.ctors : { *(.rel.ctors) }
  63. .rela.ctors : { *(.rela.ctors) }
  64. .rel.dtors : { *(.rel.dtors) }
  65. .rela.dtors : { *(.rela.dtors) }
  66. .rel.got : { *(.rel.got) }
  67. .rela.got : { *(.rela.got) }
  68. .rel.bss : { *(.rel.bss) }
  69. .rela.bss : { *(.rela.bss) }
  70. .rel.plt : { *(.rel.plt) }
  71. .rela.plt : { *(.rela.plt) }
  72. /* Internal text space. */
  73. .text :
  74. {
  75. . = ALIGN(2);
  76. *(.init)
  77. *(.init0) /* Start here after reset. */
  78. *(.init1)
  79. *(.init2) /* Copy data loop */
  80. *(.init3)
  81. *(.init4) /* Clear bss */
  82. *(.init5)
  83. *(.init6) /* C++ constructors. */
  84. *(.init7)
  85. *(.init8)
  86. *(.init9) /* Call main(). */
  87. __ctors_start = . ;
  88. *(.ctors)
  89. __ctors_end = . ;
  90. __dtors_start = . ;
  91. *(.dtors)
  92. __dtors_end = . ;
  93. . = ALIGN(2);
  94. *(.text)
  95. . = ALIGN(2);
  96. *(.text.*)
  97. . = ALIGN(2);
  98. *(.fini9) /* */
  99. *(.fini8)
  100. *(.fini7)
  101. *(.fini6) /* C++ destructors. */
  102. *(.fini5)
  103. *(.fini4)
  104. *(.fini3)
  105. *(.fini2)
  106. *(.fini1)
  107. *(.fini0) /* Infinite loop after program termination. */
  108. *(.fini)
  109. _etext = .;
  110. } > text
  111. .data : AT (ADDR (.text) + SIZEOF (.text))
  112. {
  113. PROVIDE (__data_start = .) ;
  114. . = ALIGN(2);
  115. *(.data)
  116. . = ALIGN(2);
  117. *(.gnu.linkonce.d*)
  118. . = ALIGN(2);
  119. _edata = . ;
  120. } > data
  121. /* Bootloader. */
  122. .bootloader :
  123. {
  124. PROVIDE (__boot_start = .) ;
  125. *(.bootloader)
  126. . = ALIGN(2);
  127. *(.bootloader.*)
  128. } > bootloader
  129. /* Information memory. */
  130. .infomem :
  131. {
  132. *(.infomem)
  133. . = ALIGN(2);
  134. *(.infomem.*)
  135. } > infomem
  136. /* Information memory (not loaded into MPU). */
  137. .infomemnobits :
  138. {
  139. *(.infomemnobits)
  140. . = ALIGN(2);
  141. *(.infomemnobits.*)
  142. } > infomemnobits
  143. .bss SIZEOF(.data) + ADDR(.data) :
  144. {
  145. PROVIDE (__bss_start = .) ;
  146. *(.bss)
  147. *(COMMON)
  148. PROVIDE (__bss_end = .) ;
  149. _end = . ;
  150. } > data
  151. .noinit SIZEOF(.bss) + ADDR(.bss) :
  152. {
  153. PROVIDE (__noinit_start = .) ;
  154. *(.noinit)
  155. *(COMMON)
  156. PROVIDE (__noinit_end = .) ;
  157. _end = . ;
  158. } > data
  159. .vectors :
  160. {
  161. PROVIDE (__vectors_start = .) ;
  162. *(.vectors*)
  163. _vectors_end = . ;
  164. } > vectors
  165. /* Stabs for profiling information*/
  166. .profiler 0 : { *(.profiler) }
  167. /* Stabs debugging sections. */
  168. .stab 0 : { *(.stab) }
  169. .stabstr 0 : { *(.stabstr) }
  170. .stab.excl 0 : { *(.stab.excl) }
  171. .stab.exclstr 0 : { *(.stab.exclstr) }
  172. .stab.index 0 : { *(.stab.index) }
  173. .stab.indexstr 0 : { *(.stab.indexstr) }
  174. .comment 0 : { *(.comment) }
  175. /* DWARF debug sections.
  176. Symbols in the DWARF debugging sections are relative to the beginning
  177. of the section so we begin them at 0. */
  178. /* DWARF 1 */
  179. .debug 0 : { *(.debug) }
  180. .line 0 : { *(.line) }
  181. /* GNU DWARF 1 extensions */
  182. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  183. .debug_sfnames 0 : { *(.debug_sfnames) }
  184. /* DWARF 1.1 and DWARF 2 */
  185. .debug_aranges 0 : { *(.debug_aranges) }
  186. .debug_pubnames 0 : { *(.debug_pubnames) }
  187. /* DWARF 2 */
  188. .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
  189. .debug_abbrev 0 : { *(.debug_abbrev) }
  190. .debug_line 0 : { *(.debug_line) }
  191. .debug_frame 0 : { *(.debug_frame) }
  192. .debug_str 0 : { *(.debug_str) }
  193. .debug_loc 0 : { *(.debug_loc) }
  194. .debug_macinfo 0 : { *(.debug_macinfo) }
  195. PROVIDE (__stack = 0x5FE) ;
  196. PROVIDE (__data_start_rom = _etext) ;
  197. PROVIDE (__data_end_rom = _etext + SIZEOF (.data)) ;
  198. PROVIDE (__noinit_start_rom = _etext + SIZEOF (.data)) ;
  199. PROVIDE (__noinit_end_rom = _etext + SIZEOF (.data) + SIZEOF (.noinit)) ;
  200. PROVIDE (__subdevice_has_heap = 0) ;
  201. }
  202.  
RAW Paste Data