u-boot.lds 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /*
  2. * (C) Copyright 2005 Embedded Alley Solutions, Inc.
  3. * Dan Malek, <dan@embeddedalley.com>
  4. * Copied from STx GP3.
  5. * Updates for Silicon Tx GP3 SSA.
  6. *
  7. * (C) Copyright 2002,2003,Motorola,Inc.
  8. * Xianghua Xiao, X.Xiao@motorola.com.
  9. *
  10. * See file CREDITS for list of people who contributed to this
  11. * project.
  12. *
  13. * This program is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU General Public License as
  15. * published by the Free Software Foundation; either version 2 of
  16. * the License, or (at your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License
  24. * along with this program; if not, write to the Free Software
  25. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  26. * MA 02111-1307 USA
  27. */
  28. OUTPUT_ARCH(powerpc)
  29. SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
  30. /* Do we need any of these for elf?
  31. __DYNAMIC = 0; */
  32. SECTIONS
  33. {
  34. .resetvec 0xFFFFFFFC :
  35. {
  36. *(.resetvec)
  37. } = 0xffff
  38. .bootpg 0xFFFFF000 :
  39. {
  40. cpu/mpc85xx/start.o (.bootpg)
  41. board/stxssa/init.o (.bootpg)
  42. } = 0xffff
  43. /* Read-only sections, merged into text segment: */
  44. . = + SIZEOF_HEADERS;
  45. .interp : { *(.interp) }
  46. .hash : { *(.hash) }
  47. .dynsym : { *(.dynsym) }
  48. .dynstr : { *(.dynstr) }
  49. .rel.text : { *(.rel.text) }
  50. .rela.text : { *(.rela.text) }
  51. .rel.data : { *(.rel.data) }
  52. .rela.data : { *(.rela.data) }
  53. .rel.rodata : { *(.rel.rodata) }
  54. .rela.rodata : { *(.rela.rodata) }
  55. .rel.got : { *(.rel.got) }
  56. .rela.got : { *(.rela.got) }
  57. .rel.ctors : { *(.rel.ctors) }
  58. .rela.ctors : { *(.rela.ctors) }
  59. .rel.dtors : { *(.rel.dtors) }
  60. .rela.dtors : { *(.rela.dtors) }
  61. .rel.bss : { *(.rel.bss) }
  62. .rela.bss : { *(.rela.bss) }
  63. .rel.plt : { *(.rel.plt) }
  64. .rela.plt : { *(.rela.plt) }
  65. .init : { *(.init) }
  66. .plt : { *(.plt) }
  67. .text :
  68. {
  69. cpu/mpc85xx/start.o (.text)
  70. board/stxssa/init.o (.text)
  71. cpu/mpc85xx/commproc.o (.text)
  72. cpu/mpc85xx/traps.o (.text)
  73. cpu/mpc85xx/interrupts.o (.text)
  74. cpu/mpc85xx/serial_scc.o (.text)
  75. cpu/mpc85xx/ether_fcc.o (.text)
  76. cpu/mpc85xx/cpu_init.o (.text)
  77. cpu/mpc85xx/cpu.o (.text)
  78. cpu/mpc85xx/speed.o (.text)
  79. cpu/mpc85xx/spd_sdram.o (.text)
  80. common/dlmalloc.o (.text)
  81. lib_generic/crc32.o (.text)
  82. lib_ppc/extable.o (.text)
  83. lib_generic/zlib.o (.text)
  84. *(.text)
  85. *(.fixup)
  86. *(.got1)
  87. }
  88. _etext = .;
  89. PROVIDE (etext = .);
  90. .rodata :
  91. {
  92. *(.rodata)
  93. *(.rodata1)
  94. *(.rodata.str1.4)
  95. *(.eh_frame)
  96. }
  97. .fini : { *(.fini) } =0
  98. .ctors : { *(.ctors) }
  99. .dtors : { *(.dtors) }
  100. /* Read-write section, merged into data segment: */
  101. . = (. + 0x00FF) & 0xFFFFFF00;
  102. _erotext = .;
  103. PROVIDE (erotext = .);
  104. .reloc :
  105. {
  106. *(.got)
  107. _GOT2_TABLE_ = .;
  108. *(.got2)
  109. _FIXUP_TABLE_ = .;
  110. *(.fixup)
  111. }
  112. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
  113. __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
  114. .data :
  115. {
  116. *(.data)
  117. *(.data1)
  118. *(.sdata)
  119. *(.sdata2)
  120. *(.dynamic)
  121. CONSTRUCTORS
  122. }
  123. _edata = .;
  124. PROVIDE (edata = .);
  125. . = .;
  126. __u_boot_cmd_start = .;
  127. .u_boot_cmd : { *(.u_boot_cmd) }
  128. __u_boot_cmd_end = .;
  129. . = .;
  130. __start___ex_table = .;
  131. __ex_table : { *(__ex_table) }
  132. __stop___ex_table = .;
  133. . = ALIGN(256);
  134. __init_begin = .;
  135. .text.init : { *(.text.init) }
  136. .data.init : { *(.data.init) }
  137. . = ALIGN(256);
  138. __init_end = .;
  139. __bss_start = .;
  140. .bss :
  141. {
  142. *(.sbss) *(.scommon)
  143. *(.dynbss)
  144. *(.bss)
  145. *(COMMON)
  146. }
  147. _end = . ;
  148. PROVIDE (end = .);
  149. }