u-boot.lds 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /*
  2. * (C) Copyright 2002,2003,Motorola,Inc.
  3. * Xianghua Xiao, X.Xiao@motorola.com.
  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_ARCH(powerpc)
  24. SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
  25. /* Do we need any of these for elf?
  26. __DYNAMIC = 0; */
  27. SECTIONS
  28. {
  29. .resetvec 0xFFFFFFFC :
  30. {
  31. *(.resetvec)
  32. } = 0xffff
  33. .bootpg 0xFFFFF000 :
  34. {
  35. cpu/mpc85xx/start.o (.bootpg)
  36. board/mpc8560ads/init.o (.bootpg)
  37. } = 0xffff
  38. /* Read-only sections, merged into text segment: */
  39. . = + SIZEOF_HEADERS;
  40. .interp : { *(.interp) }
  41. .hash : { *(.hash) }
  42. .dynsym : { *(.dynsym) }
  43. .dynstr : { *(.dynstr) }
  44. .rel.text : { *(.rel.text) }
  45. .rela.text : { *(.rela.text) }
  46. .rel.data : { *(.rel.data) }
  47. .rela.data : { *(.rela.data) }
  48. .rel.rodata : { *(.rel.rodata) }
  49. .rela.rodata : { *(.rela.rodata) }
  50. .rel.got : { *(.rel.got) }
  51. .rela.got : { *(.rela.got) }
  52. .rel.ctors : { *(.rel.ctors) }
  53. .rela.ctors : { *(.rela.ctors) }
  54. .rel.dtors : { *(.rel.dtors) }
  55. .rela.dtors : { *(.rela.dtors) }
  56. .rel.bss : { *(.rel.bss) }
  57. .rela.bss : { *(.rela.bss) }
  58. .rel.plt : { *(.rel.plt) }
  59. .rela.plt : { *(.rela.plt) }
  60. .init : { *(.init) }
  61. .plt : { *(.plt) }
  62. .text :
  63. {
  64. cpu/mpc85xx/start.o (.text)
  65. board/mpc8560ads/init.o (.text)
  66. cpu/mpc85xx/commproc.o (.text)
  67. cpu/mpc85xx/traps.o (.text)
  68. cpu/mpc85xx/interrupts.o (.text)
  69. cpu/mpc85xx/serial_scc.o (.text)
  70. cpu/mpc85xx/ether_fcc.o (.text)
  71. cpu/mpc85xx/cpu_init.o (.text)
  72. cpu/mpc85xx/cpu.o (.text)
  73. cpu/mpc85xx/tsec.o (.text)
  74. cpu/mpc85xx/speed.o (.text)
  75. cpu/mpc85xx/i2c.o (.text)
  76. cpu/mpc85xx/spd_sdram.o (.text)
  77. common/dlmalloc.o (.text)
  78. lib_generic/crc32.o (.text)
  79. lib_ppc/extable.o (.text)
  80. lib_generic/zlib.o (.text)
  81. *(.text)
  82. *(.fixup)
  83. *(.got1)
  84. }
  85. _etext = .;
  86. PROVIDE (etext = .);
  87. .rodata :
  88. {
  89. *(.rodata)
  90. *(.rodata1)
  91. *(.rodata.str1.4)
  92. }
  93. .fini : { *(.fini) } =0
  94. .ctors : { *(.ctors) }
  95. .dtors : { *(.dtors) }
  96. /* Read-write section, merged into data segment: */
  97. . = (. + 0x00FF) & 0xFFFFFF00;
  98. _erotext = .;
  99. PROVIDE (erotext = .);
  100. .reloc :
  101. {
  102. *(.got)
  103. _GOT2_TABLE_ = .;
  104. *(.got2)
  105. _FIXUP_TABLE_ = .;
  106. *(.fixup)
  107. }
  108. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
  109. __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
  110. .data :
  111. {
  112. *(.data)
  113. *(.data1)
  114. *(.sdata)
  115. *(.sdata2)
  116. *(.dynamic)
  117. CONSTRUCTORS
  118. }
  119. _edata = .;
  120. PROVIDE (edata = .);
  121. __u_boot_cmd_start = .;
  122. .u_boot_cmd : { *(.u_boot_cmd) }
  123. __u_boot_cmd_end = .;
  124. __start___ex_table = .;
  125. __ex_table : { *(__ex_table) }
  126. __stop___ex_table = .;
  127. . = ALIGN(256);
  128. __init_begin = .;
  129. .text.init : { *(.text.init) }
  130. .data.init : { *(.data.init) }
  131. . = ALIGN(256);
  132. __init_end = .;
  133. __bss_start = .;
  134. .bss :
  135. {
  136. *(.sbss) *(.scommon)
  137. *(.dynbss)
  138. *(.bss)
  139. *(COMMON)
  140. }
  141. _end = . ;
  142. PROVIDE (end = .);
  143. }