u-boot.lds 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * (c) Copyright 2004
  3. * Techware Information Technology, Inc.
  4. * Ming-Len Wu <minglen_wu@techware.com.tw>
  5. *
  6. * (C) Copyright 2000-2004
  7. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  8. *
  9. * (C) Copyright 2002
  10. * Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
  11. *
  12. * See file CREDITS for list of people who contributed to this
  13. * project.
  14. *
  15. * This program is free software; you can redistribute it and/or
  16. * modify it under the terms of the GNU General Public License as
  17. * published by the Free Software Foundation; either version 2 of
  18. * the License, or (at your option) any later version.
  19. *
  20. * This program is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU General Public License for more details.
  24. *
  25. * You should have received a copy of the GNU General Public License
  26. * along with this program; if not, write to the Free Software
  27. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  28. * MA 02111-1307 USA
  29. *
  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/arm920t/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. }
  49. . = ALIGN(4);
  50. . = .;
  51. __u_boot_cmd_start = .;
  52. .u_boot_cmd : { *(.u_boot_cmd) }
  53. __u_boot_cmd_end = .;
  54. . = ALIGN(4);
  55. .rel.dyn : {
  56. __rel_dyn_start = .;
  57. *(.rel*)
  58. __rel_dyn_end = .;
  59. }
  60. .dynsym : {
  61. __dynsym_start = .;
  62. *(.dynsym)
  63. }
  64. _end = .;
  65. .bss __rel_dyn_start (OVERLAY) : {
  66. __bss_start = .;
  67. *(.bss)
  68. . = ALIGN(4);
  69. __bss_end__ = .;
  70. }
  71. /DISCARD/ : { *(.dynstr*) }
  72. /DISCARD/ : { *(.dynamic*) }
  73. /DISCARD/ : { *(.plt*) }
  74. /DISCARD/ : { *(.interp*) }
  75. /DISCARD/ : { *(.gnu*) }
  76. }