u-boot.lds 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2012-2014 Birdland Audio - http://birdland.com/oem
  4. * Copyright (c) 2004-2008 Texas Instruments
  5. *
  6. * (C) Copyright 2002
  7. * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
  8. *
  9. * See file CREDITS for list of people who contributed to this
  10. * project.
  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. {
  21. *(.__image_copy_start)
  22. *(.vectors)
  23. CPUDIR/start.o (.text*)
  24. board/birdland/bav335x/built-in.o (.text*)
  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. .hash : { *(.hash*) }
  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. .gnu.hash : { *(.gnu.hash) }
  90. .plt : { *(.plt*) }
  91. .interp : { *(.interp*) }
  92. .gnu : { *(.gnu*) }
  93. .ARM.exidx : { *(.ARM.exidx*) }
  94. }