u-boot.lds 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /*
  2. **=====================================================================
  3. **
  4. ** Copyright (C) 2000, 2001, 2002, 2003
  5. ** The LEOX team <team@leox.org>, http://www.leox.org
  6. **
  7. ** LEOX.org is about the development of free hardware and software resources
  8. ** for system on chip.
  9. **
  10. ** Description: U-Boot port on the LEOX's ELPT860 CPU board
  11. ** ~~~~~~~~~~~
  12. **
  13. **=====================================================================
  14. **
  15. ** This program is free software; you can redistribute it and/or
  16. ** modify it under the terms of the GNU General Public License as
  17. ** published by the Free Software Foundation; either version 2 of
  18. ** the License, or (at your option) any later version.
  19. **
  20. ** This program is distributed in the hope that it will be useful,
  21. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. ** GNU General Public License for more details.
  24. **
  25. ** You should have received a copy of the GNU General Public License
  26. ** along with this program; if not, write to the Free Software
  27. ** Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  28. ** MA 02111-1307 USA
  29. **
  30. **=====================================================================
  31. */
  32. OUTPUT_ARCH(powerpc)
  33. SECTIONS
  34. {
  35. /* Read-only sections, merged into text segment: */
  36. . = + SIZEOF_HEADERS;
  37. .text :
  38. {
  39. /* WARNING - the following is hand-optimized to fit within */
  40. /* the sector layout of our flash chips! XXX FIXME XXX */
  41. arch/powerpc/cpu/mpc8xx/start.o (.text*)
  42. arch/powerpc/cpu/mpc8xx/traps.o (.text*)
  43. common/libcommon.o (.text*)
  44. arch/powerpc/cpu/mpc8xx/libmpc8xx.o (.text*)
  45. board/LEOX/elpt860/libelpt860.o (.text*)
  46. arch/powerpc/lib/libpowerpc.o (.text*)
  47. /* drivers/rtc/librtc.o (.text*) */
  48. . = env_offset;
  49. common/env_embedded.o (.text*)
  50. *(.text*)
  51. }
  52. _etext = .;
  53. PROVIDE (etext = .);
  54. .rodata :
  55. {
  56. *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
  57. }
  58. /* Read-write section, merged into data segment: */
  59. . = (. + 0x00FF) & 0xFFFFFF00;
  60. _erotext = .;
  61. PROVIDE (erotext = .);
  62. .reloc :
  63. {
  64. _GOT2_TABLE_ = .;
  65. KEEP(*(.got2))
  66. KEEP(*(.got))
  67. PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
  68. _FIXUP_TABLE_ = .;
  69. KEEP(*(.fixup))
  70. }
  71. __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
  72. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  73. .data :
  74. {
  75. *(.data*)
  76. *(.sdata*)
  77. }
  78. _edata = .;
  79. PROVIDE (edata = .);
  80. . = .;
  81. __u_boot_cmd_start = .;
  82. .u_boot_cmd : { *(.u_boot_cmd) }
  83. __u_boot_cmd_end = .;
  84. . = .;
  85. __start___ex_table = .;
  86. __ex_table : { *(__ex_table) }
  87. __stop___ex_table = .;
  88. . = ALIGN(256);
  89. __init_begin = .;
  90. .text.init : { *(.text.init) }
  91. .data.init : { *(.data.init) }
  92. . = ALIGN(256);
  93. __init_end = .;
  94. __bss_start = .;
  95. .bss (NOLOAD) :
  96. {
  97. *(.bss*)
  98. *(.sbss*)
  99. *(COMMON)
  100. . = ALIGN(4);
  101. }
  102. __bss_end__ = . ;
  103. PROVIDE (end = .);
  104. }