u-boot.lds 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. *(.text*)
  39. }
  40. . = ALIGN(4);
  41. .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
  42. . = ALIGN(4);
  43. .data : {
  44. *(.data*)
  45. }
  46. . = ALIGN(4);
  47. . = .;
  48. . = ALIGN(4);
  49. .u_boot_list : {
  50. KEEP(*(SORT(.u_boot_list*)));
  51. }
  52. . = ALIGN(4);
  53. .__efi_runtime_start : {
  54. *(.__efi_runtime_start)
  55. }
  56. .efi_runtime : {
  57. *(efi_runtime_text)
  58. *(efi_runtime_data)
  59. }
  60. .__efi_runtime_stop : {
  61. *(.__efi_runtime_stop)
  62. }
  63. .efi_runtime_rel_start :
  64. {
  65. *(.__efi_runtime_rel_start)
  66. }
  67. .efi_runtime_rel : {
  68. *(.relefi_runtime_text)
  69. *(.relefi_runtime_data)
  70. }
  71. .efi_runtime_rel_stop :
  72. {
  73. *(.__efi_runtime_rel_stop)
  74. }
  75. . = ALIGN(4);
  76. .image_copy_end :
  77. {
  78. *(.__image_copy_end)
  79. }
  80. .rel_dyn_start :
  81. {
  82. *(.__rel_dyn_start)
  83. }
  84. .rel.dyn : {
  85. *(.rel*)
  86. }
  87. .rel_dyn_end :
  88. {
  89. *(.__rel_dyn_end)
  90. }
  91. .hash : { *(.hash*) }
  92. .end :
  93. {
  94. *(.__end)
  95. }
  96. _image_binary_end = .;
  97. /*
  98. * Deprecated: this MMU section is used by pxa at present but
  99. * should not be used by new boards/CPUs.
  100. */
  101. . = ALIGN(4096);
  102. .mmutable : {
  103. *(.mmutable)
  104. }
  105. /*
  106. * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
  107. * __bss_base and __bss_limit are for linker only (overlay ordering)
  108. */
  109. .bss_start __rel_dyn_start (OVERLAY) : {
  110. KEEP(*(.__bss_start));
  111. __bss_base = .;
  112. }
  113. .bss __bss_base (OVERLAY) : {
  114. *(.bss*)
  115. . = ALIGN(4);
  116. __bss_limit = .;
  117. }
  118. .bss_end __bss_limit (OVERLAY) : {
  119. KEEP(*(.__bss_end));
  120. }
  121. .dynsym _image_binary_end : { *(.dynsym) }
  122. .dynbss : { *(.dynbss) }
  123. .dynstr : { *(.dynstr*) }
  124. .dynamic : { *(.dynamic*) }
  125. .gnu.hash : { *(.gnu.hash) }
  126. .plt : { *(.plt*) }
  127. .interp : { *(.interp*) }
  128. .gnu : { *(.gnu*) }
  129. .ARM.exidx : { *(.ARM.exidx*) }
  130. }