u-boot.lds 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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/vscom/baltos/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. .image_copy_end :
  54. {
  55. *(.__image_copy_end)
  56. }
  57. .rel_dyn_start :
  58. {
  59. *(.__rel_dyn_start)
  60. }
  61. .rel.dyn : {
  62. *(.rel*)
  63. }
  64. .rel_dyn_end :
  65. {
  66. *(.__rel_dyn_end)
  67. }
  68. .hash : { *(.hash*) }
  69. .end :
  70. {
  71. *(.__end)
  72. }
  73. _image_binary_end = .;
  74. /*
  75. * Deprecated: this MMU section is used by pxa at present but
  76. * should not be used by new boards/CPUs.
  77. */
  78. . = ALIGN(4096);
  79. .mmutable : {
  80. *(.mmutable)
  81. }
  82. /*
  83. * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
  84. * __bss_base and __bss_limit are for linker only (overlay ordering)
  85. */
  86. .bss_start __rel_dyn_start (OVERLAY) : {
  87. KEEP(*(.__bss_start));
  88. __bss_base = .;
  89. }
  90. .bss __bss_base (OVERLAY) : {
  91. *(.bss*)
  92. . = ALIGN(4);
  93. __bss_limit = .;
  94. }
  95. .bss_end __bss_limit (OVERLAY) : {
  96. KEEP(*(.__bss_end));
  97. }
  98. .dynsym _image_binary_end : { *(.dynsym) }
  99. .dynbss : { *(.dynbss) }
  100. .dynstr : { *(.dynstr*) }
  101. .dynamic : { *(.dynamic*) }
  102. .gnu.hash : { *(.gnu.hash) }
  103. .plt : { *(.plt*) }
  104. .interp : { *(.interp*) }
  105. .gnu : { *(.gnu*) }
  106. .ARM.exidx : { *(.ARM.exidx*) }
  107. }