u-boot.lds 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. /* Do we need any of these for elf?
  30. __DYNAMIC = 0; */
  31. SECTIONS
  32. {
  33. .resetvec 0xFFFFFFFC :
  34. {
  35. *(.resetvec)
  36. } = 0xffff
  37. .bootpg 0xFFFFF000 :
  38. {
  39. cpu/mpc85xx/start.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. cpu/mpc85xx/commproc.o (.text)
  69. cpu/mpc85xx/traps.o (.text)
  70. cpu/mpc85xx/interrupts.o (.text)
  71. cpu/mpc85xx/serial_scc.o (.text)
  72. cpu/mpc85xx/ether_fcc.o (.text)
  73. cpu/mpc85xx/cpu_init.o (.text)
  74. cpu/mpc85xx/cpu.o (.text)
  75. cpu/mpc85xx/speed.o (.text)
  76. common/dlmalloc.o (.text)
  77. lib_generic/crc32.o (.text)
  78. lib_ppc/extable.o (.text)
  79. lib_generic/zlib.o (.text)
  80. *(.text)
  81. *(.fixup)
  82. *(.got1)
  83. }
  84. _etext = .;
  85. PROVIDE (etext = .);
  86. .rodata :
  87. {
  88. *(.eh_frame)
  89. *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
  90. }
  91. .fini : { *(.fini) } =0
  92. .ctors : { *(.ctors) }
  93. .dtors : { *(.dtors) }
  94. /* Read-write section, merged into data segment: */
  95. . = (. + 0x00FF) & 0xFFFFFF00;
  96. _erotext = .;
  97. PROVIDE (erotext = .);
  98. .reloc :
  99. {
  100. *(.got)
  101. _GOT2_TABLE_ = .;
  102. *(.got2)
  103. _FIXUP_TABLE_ = .;
  104. *(.fixup)
  105. }
  106. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
  107. __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
  108. .data :
  109. {
  110. *(.data)
  111. *(.data1)
  112. *(.sdata)
  113. *(.sdata2)
  114. *(.dynamic)
  115. CONSTRUCTORS
  116. }
  117. _edata = .;
  118. PROVIDE (edata = .);
  119. . = .;
  120. __u_boot_cmd_start = .;
  121. .u_boot_cmd : { *(.u_boot_cmd) }
  122. __u_boot_cmd_end = .;
  123. . = .;
  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. . = .;
  134. __bss_start = .;
  135. .bss (NOLOAD) :
  136. {
  137. *(.sbss) *(.scommon)
  138. *(.dynbss)
  139. *(.bss)
  140. *(COMMON)
  141. . = ALIGN(4);
  142. }
  143. _end = . ;
  144. PROVIDE (end = .);
  145. }