u-boot.lds 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. KEEP(*(.got))
  65. _GOT2_TABLE_ = .;
  66. KEEP(*(.got2))
  67. _FIXUP_TABLE_ = .;
  68. KEEP(*(.fixup))
  69. }
  70. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
  71. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  72. .data :
  73. {
  74. *(.data*)
  75. *(.sdata*)
  76. }
  77. _edata = .;
  78. PROVIDE (edata = .);
  79. . = .;
  80. __u_boot_cmd_start = .;
  81. .u_boot_cmd : { *(.u_boot_cmd) }
  82. __u_boot_cmd_end = .;
  83. . = .;
  84. __start___ex_table = .;
  85. __ex_table : { *(__ex_table) }
  86. __stop___ex_table = .;
  87. . = ALIGN(256);
  88. __init_begin = .;
  89. .text.init : { *(.text.init) }
  90. .data.init : { *(.data.init) }
  91. . = ALIGN(256);
  92. __init_end = .;
  93. __bss_start = .;
  94. .bss (NOLOAD) :
  95. {
  96. *(.bss*)
  97. *(.sbss*)
  98. *(COMMON)
  99. . = ALIGN(4);
  100. }
  101. __bss_end__ = . ;
  102. PROVIDE (end = .);
  103. }