u-boot.lds 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*
  2. *
  3. * Copyright (C) 2013
  4. * Sergey Kostanbaev <sergey.kostanbaev <at> fairwaves.ru>
  5. *
  6. * Copyright (c) 2004-2008 Texas Instruments
  7. *
  8. * (C) Copyright 2002
  9. * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
  10. *
  11. * SPDX-License-Identifier: GPL-2.0+
  12. */
  13. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  14. OUTPUT_ARCH(arm)
  15. ENTRY(_start)
  16. SECTIONS
  17. {
  18. . = 0x00000000;
  19. . = ALIGN(4);
  20. .text : {
  21. *(.__image_copy_start)
  22. *(.vectors)
  23. arch/arm/cpu/arm920t/start.o (.text*)
  24. . = 0x1000;
  25. LONG(0x53555243)
  26. *(.text*)
  27. }
  28. . = ALIGN(4);
  29. .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
  30. . = ALIGN(4);
  31. .data : {
  32. *(.data*)
  33. }
  34. . = ALIGN(4);
  35. . = .;
  36. . = ALIGN(4);
  37. .u_boot_list : {
  38. KEEP(*(SORT(.u_boot_list*)));
  39. }
  40. . = ALIGN(4);
  41. .image_copy_end :
  42. {
  43. *(.__image_copy_end)
  44. }
  45. .rel_dyn_start :
  46. {
  47. *(.__rel_dyn_start)
  48. }
  49. .rel.dyn : {
  50. *(.rel*)
  51. }
  52. .rel_dyn_end :
  53. {
  54. *(.__rel_dyn_end)
  55. }
  56. .end :
  57. {
  58. *(.__end)
  59. }
  60. _image_binary_end = .;
  61. /*
  62. * Deprecated: this MMU section is used by pxa at present but
  63. * should not be used by new boards/CPUs.
  64. */
  65. . = ALIGN(4096);
  66. .mmutable : {
  67. *(.mmutable)
  68. }
  69. /*
  70. * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
  71. * __bss_base and __bss_limit are for linker only (overlay ordering)
  72. */
  73. .bss_start __rel_dyn_start (OVERLAY) : {
  74. KEEP(*(.__bss_start));
  75. __bss_base = .;
  76. }
  77. .bss __bss_base (OVERLAY) : {
  78. *(.bss*)
  79. . = ALIGN(4);
  80. __bss_limit = .;
  81. }
  82. .bss_end __bss_limit (OVERLAY) : {
  83. KEEP(*(.__bss_end));
  84. }
  85. .dynsym _image_binary_end : { *(.dynsym) }
  86. .dynbss : { *(.dynbss) }
  87. .dynstr : { *(.dynstr*) }
  88. .dynamic : { *(.dynamic*) }
  89. .plt : { *(.plt*) }
  90. .interp : { *(.interp*) }
  91. .gnu.hash : { *(.gnu.hash) }
  92. .gnu : { *(.gnu*) }
  93. .ARM.exidx : { *(.ARM.exidx*) }
  94. .gnu.linkonce.armexidx : { *(.gnu.linkonce.armexidx.*) }
  95. }