u-boot-spl.lds 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright 2012 Stefan Roese <sr@denx.de>
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License as
  6. * published by the Free Software Foundation; either version 2 of
  7. * the License, or (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, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  17. * MA 02111-1307 USA
  18. */
  19. MEMORY
  20. {
  21. sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR,
  22. LENGTH = CONFIG_SPL_BSS_MAX_SIZE
  23. flash : ORIGIN = CONFIG_SPL_TEXT_BASE,
  24. LENGTH = CONFIG_SYS_SPL_MAX_LEN
  25. }
  26. OUTPUT_ARCH(powerpc)
  27. ENTRY(_start)
  28. SECTIONS
  29. {
  30. .text :
  31. {
  32. __start = .;
  33. arch/powerpc/cpu/mpc5xxx/start.o (.text)
  34. *(.text*)
  35. } > flash
  36. . = ALIGN(4);
  37. .data : { *(SORT_BY_ALIGNMENT(.data*)) } > flash
  38. . = ALIGN(4);
  39. .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } > flash
  40. . = ALIGN(4);
  41. .end_align : { *(.end_align*) } > flash
  42. __spl_flash_end = .;
  43. .bss :
  44. {
  45. . = ALIGN(4);
  46. __bss_start = .;
  47. *(.bss*)
  48. . = ALIGN(4);
  49. __bss_end__ = .;
  50. } > sdram
  51. }