u-boot-spl.lds 1002 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2002
  4. * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
  5. *
  6. * (C) Copyright 2010
  7. * Texas Instruments, <www.ti.com>
  8. * Aneesh V <aneesh@ti.com>
  9. *
  10. * (C) 2013 Atmel Corporation
  11. * Bo Shen <voice.shen@atmel.com>
  12. */
  13. MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, \
  14. LENGTH = CONFIG_SPL_MAX_SIZE }
  15. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  16. OUTPUT_ARCH(arm)
  17. ENTRY(_start)
  18. SECTIONS
  19. {
  20. .text :
  21. {
  22. __start = .;
  23. *(.vectors)
  24. arch/arm/cpu/armv7/start.o (.text*)
  25. *(.text*)
  26. } >.sram
  27. . = ALIGN(4);
  28. .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
  29. . = ALIGN(4);
  30. .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
  31. . = ALIGN(4);
  32. .u_boot_list : { KEEP(*(SORT(.u_boot_list*))) } > .sram
  33. . = ALIGN(4);
  34. __image_copy_end = .;
  35. .end :
  36. {
  37. *(.__end)
  38. } >.sram
  39. _image_binary_end = .;
  40. .bss :
  41. {
  42. . = ALIGN(4);
  43. __bss_start = .;
  44. *(.bss*)
  45. . = ALIGN(4);
  46. __bss_end = .;
  47. } >.sram
  48. }