u-boot.lds 2.2 KB

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