u-boot.lds 3.6 KB

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