u-boot.lds 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /*
  2. * Copyright (c) 2004-2008 Texas Instruments
  3. *
  4. * (C) Copyright 2002
  5. * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
  6. *
  7. * See file CREDITS for list of people who contributed to this
  8. * project.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of
  13. * the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  23. * MA 02111-1307 USA
  24. */
  25. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  26. OUTPUT_ARCH(arm)
  27. ENTRY(_start)
  28. SECTIONS
  29. {
  30. . = 0x00000000;
  31. . = ALIGN(4);
  32. .text :
  33. {
  34. *(.__image_copy_start)
  35. *(.vectors)
  36. CPUDIR/start.o (.text*)
  37. board/ti/am335x/built-in.o (.text*)
  38. }
  39. /* This needs to come before *(.text*) */
  40. .__efi_runtime_start : {
  41. *(.__efi_runtime_start)
  42. }
  43. .efi_runtime : {
  44. *(.text.efi_runtime*)
  45. *(.rodata.efi_runtime*)
  46. *(.data.efi_runtime*)
  47. }
  48. .__efi_runtime_stop : {
  49. *(.__efi_runtime_stop)
  50. }
  51. .text_rest :
  52. {
  53. *(.text*)
  54. }
  55. . = ALIGN(4);
  56. .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
  57. . = ALIGN(4);
  58. .data : {
  59. *(.data*)
  60. }
  61. . = ALIGN(4);
  62. . = .;
  63. . = ALIGN(4);
  64. .u_boot_list : {
  65. KEEP(*(SORT(.u_boot_list*)));
  66. }
  67. . = ALIGN(4);
  68. .efi_runtime_rel_start :
  69. {
  70. *(.__efi_runtime_rel_start)
  71. }
  72. .efi_runtime_rel : {
  73. *(.rel*.efi_runtime)
  74. *(.rel*.efi_runtime.*)
  75. }
  76. .efi_runtime_rel_stop :
  77. {
  78. *(.__efi_runtime_rel_stop)
  79. }
  80. . = ALIGN(4);
  81. .image_copy_end :
  82. {
  83. *(.__image_copy_end)
  84. }
  85. .rel_dyn_start :
  86. {
  87. *(.__rel_dyn_start)
  88. }
  89. .rel.dyn : {
  90. *(.rel*)
  91. }
  92. .rel_dyn_end :
  93. {
  94. *(.__rel_dyn_end)
  95. }
  96. .hash : { *(.hash*) }
  97. .end :
  98. {
  99. *(.__end)
  100. }
  101. _image_binary_end = .;
  102. /*
  103. * Deprecated: this MMU section is used by pxa at present but
  104. * should not be used by new boards/CPUs.
  105. */
  106. . = ALIGN(4096);
  107. .mmutable : {
  108. *(.mmutable)
  109. }
  110. /*
  111. * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
  112. * __bss_base and __bss_limit are for linker only (overlay ordering)
  113. */
  114. .bss_start __rel_dyn_start (OVERLAY) : {
  115. KEEP(*(.__bss_start));
  116. __bss_base = .;
  117. }
  118. .bss __bss_base (OVERLAY) : {
  119. *(.bss*)
  120. . = ALIGN(4);
  121. __bss_limit = .;
  122. }
  123. .bss_end __bss_limit (OVERLAY) : {
  124. KEEP(*(.__bss_end));
  125. }
  126. .dynsym _image_binary_end : { *(.dynsym) }
  127. .dynbss : { *(.dynbss) }
  128. .dynstr : { *(.dynstr*) }
  129. .dynamic : { *(.dynamic*) }
  130. .gnu.hash : { *(.gnu.hash) }
  131. .plt : { *(.plt*) }
  132. .interp : { *(.interp*) }
  133. .gnu : { *(.gnu*) }
  134. .ARM.exidx : { *(.ARM.exidx*) }
  135. }