u-boot-spl.lds 1010 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE,\
  11. LENGTH = IMAGE_MAX_SIZE }
  12. MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
  13. LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
  14. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  15. OUTPUT_ARCH(arm)
  16. ENTRY(_start)
  17. SECTIONS
  18. {
  19. .text :
  20. {
  21. __start = .;
  22. *(.vectors)
  23. arch/arm/cpu/armv7/start.o (.text*)
  24. *(.text*)
  25. } >.sram
  26. . = ALIGN(4);
  27. .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
  28. . = ALIGN(4);
  29. .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
  30. . = ALIGN(4);
  31. .u_boot_list : {
  32. KEEP(*(SORT(.u_boot_list*)));
  33. } >.sram
  34. . = ALIGN(4);
  35. __image_copy_end = .;
  36. .end :
  37. {
  38. *(.__end)
  39. }
  40. _image_binary_end = .;
  41. .bss :
  42. {
  43. . = ALIGN(4);
  44. __bss_start = .;
  45. *(.bss*)
  46. . = ALIGN(4);
  47. __bss_end = .;
  48. } >.sdram
  49. }