u-boot.lds 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * January 2004 - Changed to support H4 device
  3. * Copyright (c) 2004 Texas Instruments
  4. *
  5. * (C) Copyright 2002
  6. * Gary Jennejohn, DENX Software Engineering, <gj@denx.de>
  7. *
  8. * (C) Copyright 2009 Freescale Semiconductor, Inc.
  9. *
  10. * See file CREDITS for list of people who contributed to this
  11. * project.
  12. *
  13. * This program is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU General Public License as
  15. * published by the Free Software Foundation; either version 2 of
  16. * the License, or (at your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License
  24. * along with this program; if not, write to the Free Software
  25. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  26. * MA 02111-1307 USA
  27. */
  28. OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
  29. OUTPUT_ARCH(arm)
  30. ENTRY(_start)
  31. SECTIONS
  32. {
  33. . = 0x00000000;
  34. . = ALIGN(4);
  35. .text :
  36. {
  37. arch/arm/cpu/armv7/start.o
  38. *(.text)
  39. }
  40. . = ALIGN(4);
  41. .rodata : { *(.rodata) }
  42. . = ALIGN(4);
  43. .data : {
  44. *(.data)
  45. __datarel_start = .;
  46. *(.data.rel)
  47. __datarelrolocal_start = .;
  48. *(.data.rel.ro.local)
  49. __datarellocal_start = .;
  50. *(.data.rel.local)
  51. __datarelro_start = .;
  52. *(.data.rel.ro)
  53. }
  54. __got_start = .;
  55. . = ALIGN(4);
  56. .got : { *(.got) }
  57. __got_end = .;
  58. . = .;
  59. __u_boot_cmd_start = .;
  60. .u_boot_cmd : { *(.u_boot_cmd) }
  61. __u_boot_cmd_end = .;
  62. . = ALIGN(4);
  63. __bss_start = .;
  64. .bss : { *(.bss) }
  65. _end = .;
  66. }