u-boot-spl.lds 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * Copyright (C) 2011 Marek Vasut <marek.vasut@gmail.com>
  3. * on behalf of DENX Software Engineering GmbH
  4. *
  5. * January 2004 - Changed to support H4 device
  6. * Copyright (c) 2004-2008 Texas Instruments
  7. *
  8. * (C) Copyright 2002
  9. * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
  10. *
  11. * See file CREDITS for list of people who contributed to this
  12. * project.
  13. *
  14. * This program is free software; you can redistribute it and/or
  15. * modify it under the terms of the GNU General Public License as
  16. * published by the Free Software Foundation; either version 2 of
  17. * the License, or (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program; if not, write to the Free Software
  26. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  27. * MA 02111-1307 USA
  28. */
  29. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  30. OUTPUT_ARCH(arm)
  31. ENTRY(_start)
  32. SECTIONS
  33. {
  34. . = CONFIG_SPL_TEXT_BASE;
  35. .text.0 :
  36. {
  37. arch/arm/cpu/pxa/start.o (.text*)
  38. board/vpac270/libvpac270.o (.text*)
  39. drivers/mtd/onenand/libonenand.o (.text*)
  40. }
  41. /* Start of the rest of the SPL */
  42. . = CONFIG_SPL_TEXT_BASE + 0x800;
  43. .text.1 :
  44. {
  45. *(.text*)
  46. }
  47. . = ALIGN(4);
  48. .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
  49. . = ALIGN(4);
  50. .data : {
  51. *(.data*)
  52. }
  53. . = ALIGN(4);
  54. __image_copy_end = .;
  55. .rel.dyn : {
  56. __rel_dyn_start = .;
  57. *(.rel*)
  58. __rel_dyn_end = .;
  59. }
  60. .dynsym : {
  61. __dynsym_start = .;
  62. *(.dynsym)
  63. }
  64. . = ALIGN(0x800);
  65. _end = .;
  66. .bss __rel_dyn_start (OVERLAY) : {
  67. __bss_start = .;
  68. *(.bss*)
  69. . = ALIGN(4);
  70. __bss_end = .;
  71. }
  72. /DISCARD/ : { *(.bss*) }
  73. /DISCARD/ : { *(.dynstr*) }
  74. /DISCARD/ : { *(.dynsym*) }
  75. /DISCARD/ : { *(.dynamic*) }
  76. /DISCARD/ : { *(.hash*) }
  77. /DISCARD/ : { *(.plt*) }
  78. /DISCARD/ : { *(.interp*) }
  79. /DISCARD/ : { *(.gnu*) }
  80. }