u-boot.lds.debug 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /*
  2. * (C) Copyright 2000
  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. mpc8xx/start.o (.text)
  41. common/dlmalloc.o (.text)
  42. lib/vsprintf.o (.text)
  43. lib/crc32.o (.text)
  44. arch/powerpc/lib/extable.o (.text)
  45. common/env_embedded.o(.text)
  46. *(.text)
  47. *(.got1)
  48. }
  49. _etext = .;
  50. PROVIDE (etext = .);
  51. .rodata :
  52. {
  53. *(.rodata)
  54. *(.rodata1)
  55. *(.rodata.str1.4)
  56. *(.eh_frame)
  57. }
  58. .fini : { *(.fini) } =0
  59. .ctors : { *(.ctors) }
  60. .dtors : { *(.dtors) }
  61. /* Read-write section, merged into data segment: */
  62. . = (. + 0x0FFF) & 0xFFFFF000;
  63. _erotext = .;
  64. PROVIDE (erotext = .);
  65. .reloc :
  66. {
  67. *(.got)
  68. _GOT2_TABLE_ = .;
  69. *(.got2)
  70. _FIXUP_TABLE_ = .;
  71. *(.fixup)
  72. }
  73. __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
  74. __fixup_entries = (. - _FIXUP_TABLE_)>>2;
  75. .data :
  76. {
  77. *(.data)
  78. *(.data1)
  79. *(.sdata)
  80. *(.sdata2)
  81. *(.dynamic)
  82. CONSTRUCTORS
  83. }
  84. _edata = .;
  85. PROVIDE (edata = .);
  86. . = ALIGN(4);
  87. .u_boot_list : {
  88. KEEP(*(SORT(.u_boot_list*)));
  89. }
  90. __start___ex_table = .;
  91. __ex_table : { *(__ex_table) }
  92. __stop___ex_table = .;
  93. . = ALIGN(4096);
  94. __init_begin = .;
  95. .text.init : { *(.text.init) }
  96. .data.init : { *(.data.init) }
  97. . = ALIGN(4096);
  98. __init_end = .;
  99. __bss_start = .;
  100. .bss :
  101. {
  102. *(.sbss) *(.scommon)
  103. *(.dynbss)
  104. *(.bss)
  105. *(COMMON)
  106. }
  107. __bss_end = . ;
  108. PROVIDE (end = .);
  109. }