u-boot.lds 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. *(.rodata)
  36. *(.rodata.*)
  37. }
  38. . = ALIGN(8);
  39. _data = .;
  40. .data : {
  41. *(.data)
  42. *(.data.*)
  43. }
  44. . = ALIGN(4);
  45. __u_boot_cmd_start = .;
  46. .u_boot_cmd : {
  47. KEEP(*(.u_boot_cmd))
  48. }
  49. __u_boot_cmd_end = .;
  50. . = ALIGN(4);
  51. _got = .;
  52. .got : {
  53. *(.got)
  54. }
  55. _egot = .;
  56. . = ALIGN(8);
  57. _edata = .;
  58. .bss (NOLOAD) : {
  59. *(.bss)
  60. *(.bss.*)
  61. }
  62. . = ALIGN(8);
  63. _end = .;
  64. }