u-boot-spl.lds 1.1 KB

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