u-boot.lds 1.8 KB

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