u-boot.lds 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. *(.vectors)
  20. CPUDIR/start.o (.text*)
  21. board/compulab/cm_t335/built-in.o (.text*)
  22. *(.text*)
  23. }
  24. . = ALIGN(4);
  25. .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
  26. . = ALIGN(4);
  27. .data : {
  28. *(.data*)
  29. }
  30. . = ALIGN(4);
  31. . = .;
  32. . = ALIGN(4);
  33. .u_boot_list : {
  34. KEEP(*(SORT(.u_boot_list*)));
  35. }
  36. . = ALIGN(4);
  37. .image_copy_end :
  38. {
  39. *(.__image_copy_end)
  40. }
  41. .rel_dyn_start :
  42. {
  43. *(.__rel_dyn_start)
  44. }
  45. .rel.dyn : {
  46. *(.rel*)
  47. }
  48. .rel_dyn_end :
  49. {
  50. *(.__rel_dyn_end)
  51. }
  52. .hash : { *(.hash*) }
  53. .end :
  54. {
  55. *(.__end)
  56. }
  57. _image_binary_end = .;
  58. /*
  59. * Deprecated: this MMU section is used by pxa at present but
  60. * should not be used by new boards/CPUs.
  61. */
  62. . = ALIGN(4096);
  63. .mmutable : {
  64. *(.mmutable)
  65. }
  66. /*
  67. * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
  68. * __bss_base and __bss_limit are for linker only (overlay ordering)
  69. */
  70. .bss_start __rel_dyn_start (OVERLAY) : {
  71. KEEP(*(.__bss_start));
  72. __bss_base = .;
  73. }
  74. .bss __bss_base (OVERLAY) : {
  75. *(.bss*)
  76. . = ALIGN(4);
  77. __bss_limit = .;
  78. }
  79. .bss_end __bss_limit (OVERLAY) : {
  80. KEEP(*(.__bss_end));
  81. }
  82. .dynsym _image_binary_end : { *(.dynsym) }
  83. .dynbss : { *(.dynbss) }
  84. .dynstr : { *(.dynstr*) }
  85. .dynamic : { *(.dynamic*) }
  86. .plt : { *(.plt*) }
  87. .interp : { *(.interp*) }
  88. .gnu : { *(.gnu*) }
  89. .ARM.exidx : { *(.ARM.exidx*) }
  90. }