u-boot.lds 1.7 KB

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