ekk-lm3s9b96.ld 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /****************************************************************************
  2. * configs/ekk-lm3s9b96/ostest/ekk-lm3s9b96.ld
  3. *
  4. * Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved.
  5. * Authors: Gregory Nutt <gnutt@nuttx.org>
  6. * Jose Pablo Rojas V. <jrojas@nx-engineering.com>
  7. *
  8. * Redistribution and use in source and binary forms, with or without
  9. * modification, are permitted provided that the following conditions
  10. * are met:
  11. *
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in
  16. * the documentation and/or other materials provided with the
  17. * distribution.
  18. * 3. Neither the name NuttX nor the names of its contributors may be
  19. * used to endorse or promote products derived from this software
  20. * without specific prior written permission.
  21. *
  22. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  23. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  24. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  25. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  26. * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  27. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  28. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  29. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  30. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  31. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  32. * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  33. * POSSIBILITY OF SUCH DAMAGE.
  34. *
  35. ****************************************************************************/
  36. /* The LM3S9B96 has 256Kb of FLASH beginning at address 0x0000:0000 and 96Kb
  37. * of SRAM beginning at 0x2000:0000.
  38. */
  39. MEMORY
  40. {
  41. flash (rx) : ORIGIN = 0x00000000, LENGTH = 256K
  42. sram (rwx) : ORIGIN = 0x20000000, LENGTH = 96K
  43. }
  44. OUTPUT_ARCH(arm)
  45. ENTRY(_stext)
  46. SECTIONS
  47. {
  48. .text : {
  49. _stext = ABSOLUTE(.);
  50. *(.vectors)
  51. *(.text .text.*)
  52. *(.fixup)
  53. *(.gnu.warning)
  54. *(.rodata .rodata.*)
  55. *(.gnu.linkonce.t.*)
  56. *(.glue_7)
  57. *(.glue_7t)
  58. *(.got)
  59. *(.gcc_except_table)
  60. *(.gnu.linkonce.r.*)
  61. _etext = ABSOLUTE(.);
  62. } > flash
  63. .init_section : {
  64. _sinit = ABSOLUTE(.);
  65. *(.init_array .init_array.*)
  66. _einit = ABSOLUTE(.);
  67. } > flash
  68. .ARM.extab : {
  69. *(.ARM.extab*)
  70. } > flash
  71. __exidx_start = ABSOLUTE(.);
  72. .ARM.exidx : {
  73. *(.ARM.exidx*)
  74. } > flash
  75. __exidx_end = ABSOLUTE(.);
  76. _eronly = ABSOLUTE(.);
  77. .data : {
  78. _sdata = ABSOLUTE(.);
  79. *(.data .data.*)
  80. *(.gnu.linkonce.d.*)
  81. CONSTRUCTORS
  82. _edata = ABSOLUTE(.);
  83. } > sram AT > flash
  84. .bss : {
  85. _sbss = ABSOLUTE(.);
  86. *(.bss .bss.*)
  87. *(.gnu.linkonce.b.*)
  88. *(COMMON)
  89. _ebss = ABSOLUTE(.);
  90. } > sram
  91. .stab 0 : { *(.stab) }
  92. .stabstr 0 : { *(.stabstr) }
  93. .stab.excl 0 : { *(.stab.excl) }
  94. .stab.exclstr 0 : { *(.stab.exclstr) }
  95. .stab.index 0 : { *(.stab.index) }
  96. .stab.indexstr 0 : { *(.stab.indexstr) }
  97. .comment 0 : { *(.comment) }
  98. .debug_abbrev 0 : { *(.debug_abbrev) }
  99. .debug_info 0 : { *(.debug_info) }
  100. .debug_line 0 : { *(.debug_line) }
  101. .debug_pubnames 0 : { *(.debug_pubnames) }
  102. .debug_aranges 0 : { *(.debug_aranges) }
  103. }