u-boot-spl.lds 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright 2012-2013 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. #ifdef CONFIG_440
  31. .bootpg 0xfffff000 :
  32. {
  33. arch/powerpc/cpu/ppc4xx/start.o (.bootpg)
  34. /*
  35. * PPC440 board need a board specific object with the
  36. * TLB definitions. This needs to get included right after
  37. * start.o, since the first shadow TLB only covers 4k
  38. * of address space.
  39. */
  40. CONFIG_BOARDDIR/init.o (.bootpg)
  41. } > flash
  42. #endif
  43. .resetvec 0xFFFFFFFC :
  44. {
  45. KEEP(*(.resetvec))
  46. } > flash
  47. .text :
  48. {
  49. __start = .;
  50. arch/powerpc/cpu/ppc4xx/start.o (.text)
  51. CONFIG_BOARDDIR/init.o (.text)
  52. *(.text*)
  53. } > flash
  54. . = ALIGN(4);
  55. .data : { *(SORT_BY_ALIGNMENT(.data*)) } > flash
  56. . = ALIGN(4);
  57. .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } > flash
  58. .bss :
  59. {
  60. . = ALIGN(4);
  61. __bss_start = .;
  62. *(.bss*)
  63. . = ALIGN(4);
  64. __bss_end = .;
  65. } > sdram
  66. }