u-boot-spl.lds 922 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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/arm1136/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. __image_copy_end = .;
  33. .end :
  34. {
  35. *(.__end)
  36. }
  37. .bss :
  38. {
  39. . = ALIGN(4);
  40. __bss_start = .;
  41. *(.bss*)
  42. . = ALIGN(4);
  43. __bss_end = .;
  44. } >.sdram
  45. }