u-boot-spl.lds 1.2 KB

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