u-boot.lds 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* -*- Fundamental -*-
  2. *
  3. * Copyright (C) 2008 Atmel Corporation
  4. *
  5. * See file CREDITS for list of people who contributed to this project.
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the Free
  9. * Software Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful, but WITHOUT
  13. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  15. * more details.
  16. *
  17. * You should have received a copy of the GNU General Public License along with
  18. * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
  19. * Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. OUTPUT_FORMAT("elf32-avr32", "elf32-avr32", "elf32-avr32")
  22. OUTPUT_ARCH(avr32)
  23. ENTRY(_start)
  24. SECTIONS
  25. {
  26. . = 0;
  27. _text = .;
  28. .text : {
  29. *(.exception.text)
  30. *(.text)
  31. *(.text.*)
  32. }
  33. _etext = .;
  34. .rodata : {
  35. *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
  36. }
  37. . = ALIGN(8);
  38. _data = .;
  39. .data : {
  40. *(.data)
  41. *(.data.*)
  42. }
  43. . = ALIGN(4);
  44. __u_boot_cmd_start = .;
  45. .u_boot_cmd : {
  46. KEEP(*(.u_boot_cmd))
  47. }
  48. __u_boot_cmd_end = .;
  49. . = ALIGN(4);
  50. _got = .;
  51. .got : {
  52. *(.got)
  53. }
  54. _egot = .;
  55. . = ALIGN(8);
  56. _edata = .;
  57. .bss (NOLOAD) : {
  58. *(.bss)
  59. *(.bss.*)
  60. }
  61. . = ALIGN(8);
  62. _end = .;
  63. }