exynos-uboot-spl.lds 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. * See file CREDITS for list of people who contributed to this
  10. * project.
  11. *
  12. * This program is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU General Public License as
  14. * published by the Free Software Foundation; either version 2 of
  15. * the License, or (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program; if not, write to the Free Software
  24. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  25. * MA 02111-1307 USA
  26. */
  27. MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, \
  28. LENGTH = CONFIG_SPL_MAX_FOOTPRINT }
  29. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  30. OUTPUT_ARCH(arm)
  31. ENTRY(_start)
  32. SECTIONS
  33. {
  34. .text :
  35. {
  36. __start = .;
  37. arch/arm/cpu/armv7/start.o (.text*)
  38. *(.text*)
  39. } >.sram
  40. . = ALIGN(4);
  41. .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
  42. . = ALIGN(4);
  43. .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
  44. . = ALIGN(4);
  45. .u_boot_list : {
  46. KEEP(*(SORT(.u_boot_list*)));
  47. } >.sram
  48. . = ALIGN(4);
  49. /* Align .machine_param on 256 byte boundary for easier searching */
  50. .machine_param ALIGN(0x100) : { *(.machine_param) } >.sram
  51. . = ALIGN(4);
  52. __image_copy_end = .;
  53. _end = .;
  54. .bss :
  55. {
  56. . = ALIGN(4);
  57. __bss_start = .;
  58. *(.bss*)
  59. . = ALIGN(4);
  60. __bss_end = .;
  61. } >.sram
  62. }