u-boot.lds 1.9 KB

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