u-boot-spl.lds 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright (C) 2012 Altera Corporation <www.altera.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. MEMORY { .sdram : ORIGIN = (0), LENGTH = (0xffffffff) }
  18. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  19. OUTPUT_ARCH(arm)
  20. ENTRY(_start)
  21. SECTIONS
  22. {
  23. . = 0x00000000;
  24. . = ALIGN(4);
  25. .text :
  26. {
  27. arch/arm/cpu/armv7/start.o (.text)
  28. *(.text*)
  29. } >.sdram
  30. . = ALIGN(4);
  31. .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } >.sdram
  32. . = ALIGN(4);
  33. .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sdram
  34. . = ALIGN(4);
  35. __image_copy_end = .;
  36. _end = .;
  37. .bss : {
  38. . = ALIGN(4);
  39. __bss_start = .;
  40. *(.bss*)
  41. . = ALIGN(4);
  42. __bss_end__ = .;
  43. } >.sdram
  44. . = ALIGN(8);
  45. __malloc_start = .;
  46. . = . + CONFIG_SPL_MALLOC_SIZE;
  47. __malloc_end = .;
  48. . = . + CONFIG_SPL_STACK_SIZE;
  49. . = ALIGN(8);
  50. __stack_start = .;
  51. }