u-boot.lds 1.7 KB

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