u-boot.lds 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. * Base address of internal SDRAM is 0x0C000000.
  30. *
  31. * NOTE: This address must match with the definition of
  32. *TEXT_BASE in config.mk (in this directory).
  33. */
  34. . = 0x0C000000 + (8*1024*1024) - (256*1024);
  35. PROVIDE (reloc_dst = .);
  36. PROVIDE (_ftext = .);
  37. PROVIDE (_fcode = .);
  38. PROVIDE (_start = .);
  39. .text :
  40. {
  41. cpu/sh2/start.o (.text)
  42. . = ALIGN(8192);
  43. common/environment.o (.ppcenv)
  44. . = ALIGN(8192);
  45. common/environment.o (.ppcenvr)
  46. . = ALIGN(8192);
  47. *(.text)
  48. . = ALIGN(4);
  49. } =0xFF
  50. PROVIDE (_ecode = .);
  51. .rodata :
  52. {
  53. *(.rodata)
  54. . = ALIGN(4);
  55. }
  56. PROVIDE (_etext = .);
  57. PROVIDE (_fdata = .);
  58. .data :
  59. {
  60. *(.data)
  61. . = ALIGN(4);
  62. }
  63. PROVIDE (_edata = .);
  64. PROVIDE (_fgot = .);
  65. .got :
  66. {
  67. *(.got)
  68. . = ALIGN(4);
  69. }
  70. PROVIDE (_egot = .);
  71. PROVIDE (__u_boot_cmd_start = .);
  72. .u_boot_cmd :
  73. {
  74. *(.u_boot_cmd)
  75. . = ALIGN(4);
  76. }
  77. PROVIDE (__u_boot_cmd_end = .);
  78. PROVIDE (reloc_dst_end = .);
  79. PROVIDE (bss_start = .);
  80. PROVIDE (__bss_start = .);
  81. .bss :
  82. {
  83. *(.bss)
  84. . = ALIGN(4);
  85. }
  86. PROVIDE (bss_end = .);
  87. PROVIDE (_end = .);
  88. }