u-boot-spl.lds 1020 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * (C) Copyright 2002
  3. * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
  4. *
  5. * (C) Copyright 2010
  6. * Texas Instruments, <www.ti.com>
  7. * Aneesh V <aneesh@ti.com>
  8. *
  9. * SPDX-License-Identifier: GPL-2.0+
  10. */
  11. MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
  12. LENGTH = CONFIG_SPL_MAX_SIZE }
  13. MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
  14. LENGTH = CONFIG_SPL_BSS_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 : {
  33. KEEP(*(SORT(.u_boot_list*)));
  34. } >.sram
  35. . = ALIGN(4);
  36. __image_copy_end = .;
  37. .end :
  38. {
  39. *(.__end)
  40. }
  41. _image_binary_end = .;
  42. .bss :
  43. {
  44. . = ALIGN(4);
  45. __bss_start = .;
  46. *(.bss*)
  47. . = ALIGN(4);
  48. __bss_end = .;
  49. } >.sdram
  50. }