u-boot-spl.lds 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2012
  4. * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
  5. * Tom Cubie <tangliang@allwinnertech.com>
  6. *
  7. * Based on omap-common/u-boot-spl.lds:
  8. *
  9. * (C) Copyright 2002
  10. * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
  11. *
  12. * (C) Copyright 2010
  13. * Texas Instruments, <www.ti.com>
  14. * Aneesh V <aneesh@ti.com>
  15. */
  16. MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
  17. LENGTH = CONFIG_SPL_MAX_SIZE }
  18. MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
  19. LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
  20. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  21. OUTPUT_ARCH(arm)
  22. ENTRY(_start)
  23. SECTIONS
  24. {
  25. .text :
  26. {
  27. __start = .;
  28. *(.vectors)
  29. arch/arm/cpu/armv7/start.o (.text)
  30. *(.text*)
  31. } > .sram
  32. . = ALIGN(4);
  33. .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
  34. . = ALIGN(4);
  35. .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
  36. . = ALIGN(4);
  37. .u_boot_list : {
  38. KEEP(*(SORT(.u_boot_list*)));
  39. } > .sram
  40. . = ALIGN(4);
  41. __image_copy_end = .;
  42. _end = .;
  43. .bss :
  44. {
  45. . = ALIGN(4);
  46. __bss_start = .;
  47. *(.bss*)
  48. . = ALIGN(4);
  49. __bss_end = .;
  50. } > .sdram
  51. }