u-boot.lds 1.8 KB

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