u-boot.lds 3.9 KB

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