u-boot.lds.debug 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. **=====================================================================
  3. **
  4. ** Copyright (C) 2000, 2001, 2002, 2003
  5. ** The LEOX team <team@leox.org>, http://www.leox.org
  6. **
  7. ** LEOX.org is about the development of free hardware and software resources
  8. ** for system on chip.
  9. **
  10. ** Description: U-Boot port on the LEOX's ELPT860 CPU board
  11. ** ~~~~~~~~~~~
  12. **
  13. **=====================================================================
  14. **
  15. ** This program is free software; you can redistribute it and/or
  16. ** modify it under the terms of the GNU General Public License as
  17. ** published by the Free Software Foundation; either version 2 of
  18. ** the License, or (at your option) any later version.
  19. **
  20. ** This program is distributed in the hope that it will be useful,
  21. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. ** GNU General Public License for more details.
  24. **
  25. ** You should have received a copy of the GNU General Public License
  26. ** along with this program; if not, write to the Free Software
  27. ** Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  28. ** MA 02111-1307 USA
  29. **
  30. **=====================================================================
  31. */
  32. OUTPUT_ARCH(powerpc)
  33. SEARCH_DIR(/lib); SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/local/lib); SEARCH_DIR(/usr/local/powerpc-any-elf/lib);
  34. /* Do we need any of these for elf?
  35. __DYNAMIC = 0; */
  36. SECTIONS
  37. {
  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. /* WARNING - the following is hand-optimized to fit within */
  65. /* the sector layout of our flash chips! XXX FIXME XXX */
  66. cpu/mpc8xx/start.o (.text)
  67. common/dlmalloc.o (.text)
  68. lib_generic/vsprintf.o (.text)
  69. lib_generic/crc32.o (.text)
  70. . = env_offset;
  71. common/environment.o (.text)
  72. *(.text)
  73. *(.fixup)
  74. *(.got1)
  75. }
  76. _etext = .;
  77. PROVIDE (etext = .);
  78. .rodata :
  79. {
  80. *(.rodata)
  81. *(.rodata1)
  82. }
  83. .fini : { *(.fini) } =0
  84. .ctors : { *(.ctors) }
  85. .dtors : { *(.dtors) }
  86. /* Read-write section, merged into data segment: */
  87. . = (. + 0x0FFF) & 0xFFFFF000;
  88. _erotext = .;
  89. PROVIDE (erotext = .);
  90. .reloc :
  91. {
  92. *(.got)
  93. _GOT2_TABLE_ = .;
  94. *(.got2)
  95. _FIXUP_TABLE_ = .;
  96. *(.fixup)
  97. }
  98. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
  99. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  100. .data :
  101. {
  102. *(.data)
  103. *(.data1)
  104. *(.sdata)
  105. *(.sdata2)
  106. *(.dynamic)
  107. CONSTRUCTORS
  108. }
  109. _edata = .;
  110. PROVIDE (edata = .);
  111. __start___ex_table = .;
  112. __ex_table : { *(__ex_table) }
  113. __stop___ex_table = .;
  114. . = ALIGN(4096);
  115. __init_begin = .;
  116. .text.init : { *(.text.init) }
  117. .data.init : { *(.data.init) }
  118. . = ALIGN(4096);
  119. __init_end = .;
  120. __bss_start = .;
  121. .bss :
  122. {
  123. *(.sbss) *(.scommon)
  124. *(.dynbss)
  125. *(.bss)
  126. *(COMMON)
  127. }
  128. _end = . ;
  129. PROVIDE (end = .);
  130. }