u-boot.lds 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * (C) Copyright 2009
  3. * Ilya Yanok, Emcraft Systems Ltd, <yanok@emcraft.com>
  4. *
  5. * Copyright (C) 2005-2007 Samsung Electronics
  6. * Kyungin Park <kyugnmin.park@samsung.com>
  7. *
  8. * Copyright (c) 2004 Texas Instruments
  9. *
  10. * (C) Copyright 2002
  11. * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
  12. *
  13. * See file CREDITS for list of people who contributed to this
  14. * project.
  15. *
  16. * This program is free software; you can redistribute it and/or
  17. * modify it under the terms of the GNU General Public License as
  18. * published by the Free Software Foundation; either version 2 of
  19. * the License, or (at your option) any later version.
  20. *
  21. * This program is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. * GNU General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU General Public License
  27. * along with this program; if not, write to the Free Software
  28. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  29. * MA 02111-1307 USA
  30. */
  31. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  32. OUTPUT_ARCH(arm)
  33. ENTRY(_start)
  34. SECTIONS
  35. {
  36. . = 0x00000000;
  37. . = ALIGN(4);
  38. .text :
  39. {
  40. arch/arm/cpu/arm1136/start.o (.text)
  41. *(.text)
  42. }
  43. . = ALIGN(4);
  44. .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
  45. . = ALIGN(4);
  46. .data : {
  47. *(.data)
  48. __datarel_start = .;
  49. *(.data.rel)
  50. __datarelrolocal_start = .;
  51. *(.data.rel.ro.local)
  52. __datarellocal_start = .;
  53. *(.data.rel.local)
  54. __datarelro_start = .;
  55. *(.data.rel.ro)
  56. }
  57. . = ALIGN(4);
  58. __rel_dyn_start = .;
  59. .rel.dyn : { *(.rel.dyn) }
  60. __rel_dyn_end = .;
  61. __dynsym_start = .;
  62. .dynsym : { *(.dynsym) }
  63. . = .;
  64. __u_boot_cmd_start = .;
  65. .u_boot_cmd : { *(.u_boot_cmd) }
  66. __u_boot_cmd_end = .;
  67. . = ALIGN(4);
  68. __bss_start = .;
  69. .bss (NOLOAD) : { *(.bss) . = ALIGN(4); }
  70. _end = .;
  71. /DISCARD/ : { *(.dynstr*) }
  72. /DISCARD/ : { *(.dynamic*) }
  73. /DISCARD/ : { *(.plt*) }
  74. /DISCARD/ : { *(.interp*) }
  75. /DISCARD/ : { *(.gnu*) }
  76. }