u-boot.lds 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. *
  3. * Copyright (C) 2005-2007 Samsung Electronics
  4. * Kyungin Park <kyugnmin.park@samsung.com>
  5. *
  6. * January 2004 - Changed to support H4 device
  7. * Copyright (c) 2004 Texas Instruments
  8. *
  9. * (C) Copyright 2002
  10. * Gary Jennejohn, DENX Software Engineering, <garyj@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. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  31. OUTPUT_ARCH(arm)
  32. ENTRY(_start)
  33. SECTIONS
  34. {
  35. . = 0x00000000;
  36. . = ALIGN(4);
  37. .text :
  38. {
  39. cpu/arm1136/start.o (.text)
  40. *(.text)
  41. }
  42. . = ALIGN(4);
  43. .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
  44. . = ALIGN(4);
  45. .data : { *(.data) }
  46. . = ALIGN(4);
  47. .got : { *(.got) }
  48. . = .;
  49. __u_boot_cmd_start = .;
  50. .u_boot_cmd : { *(.u_boot_cmd) }
  51. __u_boot_cmd_end = .;
  52. . = ALIGN(4);
  53. __bss_start = .;
  54. .bss (NOLOAD) : { *(.bss) . = ALIGN(4); }
  55. _end = .;
  56. }