u-boot.lds.debug 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*
  2. * (C) Copyright 2002-2004
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. OUTPUT_ARCH(powerpc)
  8. /* Do we need any of these for elf?
  9. __DYNAMIC = 0; */
  10. SECTIONS
  11. {
  12. /* Read-only sections, merged into text segment: */
  13. . = + SIZEOF_HEADERS;
  14. .interp : { *(.interp) }
  15. .hash : { *(.hash) }
  16. .dynsym : { *(.dynsym) }
  17. .dynstr : { *(.dynstr) }
  18. .rel.text : { *(.rel.text) }
  19. .rela.text : { *(.rela.text) }
  20. .rel.data : { *(.rel.data) }
  21. .rela.data : { *(.rela.data) }
  22. .rel.rodata : { *(.rel.rodata) }
  23. .rela.rodata : { *(.rela.rodata) }
  24. .rel.got : { *(.rel.got) }
  25. .rela.got : { *(.rela.got) }
  26. .rel.ctors : { *(.rel.ctors) }
  27. .rela.ctors : { *(.rela.ctors) }
  28. .rel.dtors : { *(.rel.dtors) }
  29. .rela.dtors : { *(.rela.dtors) }
  30. .rel.bss : { *(.rel.bss) }
  31. .rela.bss : { *(.rela.bss) }
  32. .rel.plt : { *(.rel.plt) }
  33. .rela.plt : { *(.rela.plt) }
  34. .init : { *(.init) }
  35. .plt : { *(.plt) }
  36. .text :
  37. {
  38. /* WARNING - the following is hand-optimized to fit within */
  39. /* the sector layout of our flash chips! XXX FIXME XXX */
  40. arch/powerpc/cpu/ppc4xx/start.o (.text)
  41. board/xes/xpedite1000/init.o (.text)
  42. arch/powerpc/cpu/ppc4xx/kgdb.o (.text)
  43. arch/powerpc/cpu/ppc4xx/traps.o (.text)
  44. arch/powerpc/cpu/ppc4xx/interrupts.o (.text)
  45. arch/powerpc/cpu/ppc4xx/4xx_uart.o (.text)
  46. arch/powerpc/cpu/ppc4xx/cpu_init.o (.text)
  47. arch/powerpc/cpu/ppc4xx/speed.o (.text)
  48. common/dlmalloc.o (.text)
  49. lib/crc32.o (.text)
  50. arch/powerpc/lib/extable.o (.text)
  51. lib/zlib.o (.text)
  52. /* common/env_embedded.o(.text) */
  53. *(.text)
  54. *(.got1)
  55. }
  56. _etext = .;
  57. PROVIDE (etext = .);
  58. .rodata :
  59. {
  60. *(.eh_frame)
  61. *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
  62. }
  63. .fini : { *(.fini) } =0
  64. .ctors : { *(.ctors) }
  65. .dtors : { *(.dtors) }
  66. /* Read-write section, merged into data segment: */
  67. . = (. + 0x0FFF) & 0xFFFFF000;
  68. _erotext = .;
  69. PROVIDE (erotext = .);
  70. .reloc :
  71. {
  72. *(.got)
  73. _GOT2_TABLE_ = .;
  74. *(.got2)
  75. _FIXUP_TABLE_ = .;
  76. *(.fixup)
  77. }
  78. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
  79. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  80. .data :
  81. {
  82. *(.data)
  83. *(.data1)
  84. *(.sdata)
  85. *(.sdata2)
  86. *(.dynamic)
  87. CONSTRUCTORS
  88. }
  89. _edata = .;
  90. PROVIDE (edata = .);
  91. . = ALIGN(4);
  92. .u_boot_list : {
  93. KEEP(*(SORT(.u_boot_list*)));
  94. }
  95. __start___ex_table = .;
  96. __ex_table : { *(__ex_table) }
  97. __stop___ex_table = .;
  98. . = ALIGN(256);
  99. __init_begin = .;
  100. .text.init : { *(.text.init) }
  101. .data.init : { *(.data.init) }
  102. . = ALIGN(256);
  103. __init_end = .;
  104. __bss_start = .;
  105. .bss :
  106. {
  107. *(.sbss) *(.scommon)
  108. *(.dynbss)
  109. *(.bss)
  110. *(COMMON)
  111. }
  112. __bss_end = . ;
  113. PROVIDE (end = .);
  114. }