u-boot.lds 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. * Copyright (C) 2008 Nobuhiro Iwamatsu
  3. * Copyright (C) 2008 Renesas Solutions Corp.
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux")
  24. OUTPUT_ARCH(sh)
  25. ENTRY(_start)
  26. SECTIONS
  27. {
  28. /*
  29. * entry and reloct_dst will be provided via ldflags
  30. */
  31. . = .;
  32. PROVIDE (_ftext = .);
  33. PROVIDE (_fcode = .);
  34. PROVIDE (_start = .);
  35. .text :
  36. {
  37. KEEP(arch/sh/cpu/sh2/start.o (.text))
  38. . = ALIGN(8192);
  39. common/env_embedded.o (.ppcenv)
  40. . = ALIGN(8192);
  41. common/env_embedded.o (.ppcenvr)
  42. . = ALIGN(8192);
  43. *(.text)
  44. . = ALIGN(4);
  45. } =0xFF
  46. PROVIDE (_ecode = .);
  47. .rodata :
  48. {
  49. *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
  50. . = ALIGN(4);
  51. }
  52. PROVIDE (_etext = .);
  53. PROVIDE (_fdata = .);
  54. .data :
  55. {
  56. *(.data)
  57. . = ALIGN(4);
  58. }
  59. PROVIDE (_edata = .);
  60. PROVIDE (_fgot = .);
  61. .got :
  62. {
  63. *(.got)
  64. . = ALIGN(4);
  65. }
  66. PROVIDE (_egot = .);
  67. .u_boot_list : {
  68. #include <u-boot.lst>
  69. }
  70. PROVIDE (reloc_dst_end = .);
  71. PROVIDE (bss_start = .);
  72. PROVIDE (__bss_start = .);
  73. .bss :
  74. {
  75. *(.bss)
  76. . = ALIGN(4);
  77. }
  78. PROVIDE (bss_end = .);
  79. PROVIDE (__bss_end = .);
  80. }