exynos-uboot-spl.lds 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * (C) Copyright 2002
  3. * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
  4. *
  5. * Copyright (C) 2012 Samsung Electronics
  6. *
  7. * Based on arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
  8. *
  9. * SPDX-License-Identifier: GPL-2.0+
  10. */
  11. MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, \
  12. LENGTH = CONFIG_SPL_MAX_FOOTPRINT }
  13. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  14. OUTPUT_ARCH(arm)
  15. ENTRY(_start)
  16. SECTIONS
  17. {
  18. .text :
  19. {
  20. __start = .;
  21. *(.vectors)
  22. arch/arm/cpu/armv7/start.o (.text*)
  23. *(.text*)
  24. } >.sram
  25. . = ALIGN(4);
  26. .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
  27. . = ALIGN(4);
  28. .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
  29. . = ALIGN(4);
  30. .u_boot_list : {
  31. KEEP(*(SORT(.u_boot_list*)));
  32. } >.sram
  33. . = ALIGN(4);
  34. /* Align .machine_param on 256 byte boundary for easier searching */
  35. .machine_param ALIGN(0x100) : { *(.machine_param) } >.sram
  36. . = ALIGN(4);
  37. __image_copy_end = .;
  38. .end :
  39. {
  40. *(.__end)
  41. } >.sram
  42. .bss :
  43. {
  44. . = ALIGN(4);
  45. __bss_start = .;
  46. *(.bss*)
  47. . = ALIGN(4);
  48. __bss_end = .;
  49. } >.sram
  50. }