u-boot.lds 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /*
  2. * (C) Copyright 2000
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  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. /* Do we need any of these for elf?
  25. __DYNAMIC = 0; */
  26. SECTIONS
  27. {
  28. /* To compile successfully, uncomment the following section.
  29. * To go in ram, remove the section.
  30. * Added by SunHe.
  31. */
  32. .resetvec 0xFFFFFFFC :
  33. {
  34. *(.resetvec)
  35. } = 0xffff
  36. /* Read-only sections, merged into text segment: */
  37. . = + SIZEOF_HEADERS;
  38. .interp : { *(.interp) }
  39. .hash : { *(.hash) }
  40. .dynsym : { *(.dynsym) }
  41. .dynstr : { *(.dynstr) }
  42. .rel.text : { *(.rel.text) }
  43. .rela.text : { *(.rela.text) }
  44. .rel.data : { *(.rel.data) }
  45. .rela.data : { *(.rela.data) }
  46. .rel.rodata : { *(.rel.rodata) }
  47. .rela.rodata : { *(.rela.rodata) }
  48. .rel.got : { *(.rel.got) }
  49. .rela.got : { *(.rela.got) }
  50. .rel.ctors : { *(.rel.ctors) }
  51. .rela.ctors : { *(.rela.ctors) }
  52. .rel.dtors : { *(.rel.dtors) }
  53. .rela.dtors : { *(.rela.dtors) }
  54. .rel.bss : { *(.rel.bss) }
  55. .rela.bss : { *(.rela.bss) }
  56. .rel.plt : { *(.rel.plt) }
  57. .rela.plt : { *(.rela.plt) }
  58. .init : { *(.init) }
  59. .plt : { *(.plt) }
  60. .text :
  61. {
  62. cpu/ppc4xx/start.o (.text)
  63. *(.text)
  64. *(.fixup)
  65. *(.got1)
  66. }
  67. _etext = .;
  68. PROVIDE (etext = .);
  69. .rodata :
  70. {
  71. *(.rodata)
  72. *(.rodata1)
  73. *(.rodata.str1.4)
  74. }
  75. .fini : { *(.fini) } =0
  76. .ctors : { *(.ctors) }
  77. .dtors : { *(.dtors) }
  78. /* Read-write section, merged into data segment: */
  79. . = (. + 0x00FF) & 0xFFFFFF00;
  80. _erotext = .;
  81. PROVIDE (erotext = .);
  82. .reloc :
  83. {
  84. *(.got)
  85. _GOT2_TABLE_ = .;
  86. *(.got2)
  87. _FIXUP_TABLE_ = .;
  88. *(.fixup)
  89. }
  90. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
  91. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  92. .data :
  93. {
  94. *(.data)
  95. *(.data1)
  96. *(.sdata)
  97. *(.sdata2)
  98. *(.dynamic)
  99. CONSTRUCTORS
  100. }
  101. _edata = .;
  102. PROVIDE (edata = .);
  103. . = .;
  104. __u_boot_cmd_start = .;
  105. .u_boot_cmd : { *(.u_boot_cmd) }
  106. __u_boot_cmd_end = .;
  107. . = .;
  108. __start___ex_table = .;
  109. __ex_table : { *(__ex_table) }
  110. __stop___ex_table = .;
  111. . = ALIGN(256);
  112. __init_begin = .;
  113. .text.init : { *(.text.init) }
  114. .data.init : { *(.data.init) }
  115. . = ALIGN(256);
  116. __init_end = .;
  117. __bss_start = .;
  118. .bss (NOLOAD) :
  119. {
  120. *(.sbss) *(.scommon)
  121. *(.dynbss)
  122. *(.bss)
  123. *(COMMON)
  124. }
  125. _end = . ;
  126. PROVIDE (end = .);
  127. }