u-boot.lds 2.3 KB

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