vmlinux.lds.S 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. #include <asm-generic/vmlinux.lds.h>
  2. OUTPUT_ARCH(powerpc:common)
  3. jiffies = jiffies_64 + 4;
  4. SECTIONS
  5. {
  6. /* Read-only sections, merged into text segment: */
  7. . = + SIZEOF_HEADERS;
  8. .interp : { *(.interp) }
  9. .hash : { *(.hash) }
  10. .gnu.hash : { *(.gnu.hash) }
  11. .dynsym : { *(.dynsym) }
  12. .dynstr : { *(.dynstr) }
  13. .rel.text : { *(.rel.text) }
  14. .rela.text : { *(.rela.text) }
  15. .rel.data : { *(.rel.data) }
  16. .rela.data : { *(.rela.data) }
  17. .rel.rodata : { *(.rel.rodata) }
  18. .rela.rodata : { *(.rela.rodata) }
  19. .rel.got : { *(.rel.got) }
  20. .rela.got : { *(.rela.got) }
  21. .rel.ctors : { *(.rel.ctors) }
  22. .rela.ctors : { *(.rela.ctors) }
  23. .rel.dtors : { *(.rel.dtors) }
  24. .rela.dtors : { *(.rela.dtors) }
  25. .rel.bss : { *(.rel.bss) }
  26. .rela.bss : { *(.rela.bss) }
  27. .rel.plt : { *(.rel.plt) }
  28. .rela.plt : { *(.rela.plt) }
  29. /* .init : { *(.init) } =0*/
  30. .plt : { *(.plt) }
  31. .text :
  32. {
  33. _text = .;
  34. TEXT_TEXT
  35. SCHED_TEXT
  36. LOCK_TEXT
  37. *(.fixup)
  38. *(.got1)
  39. __got2_start = .;
  40. *(.got2)
  41. __got2_end = .;
  42. }
  43. _etext = .;
  44. PROVIDE (etext = .);
  45. RODATA
  46. .fini : { *(.fini) } =0
  47. .ctors : { *(.ctors) }
  48. .dtors : { *(.dtors) }
  49. .fixup : { *(.fixup) }
  50. __ex_table : {
  51. __start___ex_table = .;
  52. *(__ex_table)
  53. __stop___ex_table = .;
  54. }
  55. __bug_table : {
  56. __start___bug_table = .;
  57. *(__bug_table)
  58. __stop___bug_table = .;
  59. }
  60. /* Read-write section, merged into data segment: */
  61. . = ALIGN(4096);
  62. .data :
  63. {
  64. DATA_DATA
  65. *(.data1)
  66. *(.sdata)
  67. *(.sdata2)
  68. *(.got.plt) *(.got)
  69. *(.dynamic)
  70. CONSTRUCTORS
  71. }
  72. . = ALIGN(4096);
  73. __nosave_begin = .;
  74. .data_nosave : { *(.data.nosave) }
  75. . = ALIGN(4096);
  76. __nosave_end = .;
  77. . = ALIGN(32);
  78. .data.cacheline_aligned : { *(.data.cacheline_aligned) }
  79. _edata = .;
  80. PROVIDE (edata = .);
  81. . = ALIGN(8192);
  82. .data.init_task : { *(.data.init_task) }
  83. NOTES
  84. . = ALIGN(4096);
  85. __init_begin = .;
  86. .init.text : {
  87. _sinittext = .;
  88. *(.init.text)
  89. _einittext = .;
  90. }
  91. /* .exit.text is discarded at runtime, not link time,
  92. to deal with references from __bug_table */
  93. .exit.text : { *(.exit.text) }
  94. .init.data : {
  95. *(.init.data);
  96. __vtop_table_begin = .;
  97. *(.vtop_fixup);
  98. __vtop_table_end = .;
  99. __ptov_table_begin = .;
  100. *(.ptov_fixup);
  101. __ptov_table_end = .;
  102. }
  103. . = ALIGN(16);
  104. __setup_start = .;
  105. .init.setup : { *(.init.setup) }
  106. __setup_end = .;
  107. __initcall_start = .;
  108. .initcall.init : {
  109. INITCALLS
  110. }
  111. __initcall_end = .;
  112. __con_initcall_start = .;
  113. .con_initcall.init : { *(.con_initcall.init) }
  114. __con_initcall_end = .;
  115. SECURITY_INIT
  116. __start___ftr_fixup = .;
  117. __ftr_fixup : { *(__ftr_fixup) }
  118. __stop___ftr_fixup = .;
  119. PERCPU(4096)
  120. #ifdef CONFIG_BLK_DEV_INITRD
  121. . = ALIGN(4096);
  122. __initramfs_start = .;
  123. .init.ramfs : { *(.init.ramfs) }
  124. __initramfs_end = .;
  125. #endif
  126. . = ALIGN(4096);
  127. __init_end = .;
  128. . = ALIGN(4096);
  129. _sextratext = .;
  130. _eextratext = .;
  131. __bss_start = .;
  132. .bss :
  133. {
  134. *(.sbss) *(.scommon)
  135. *(.dynbss)
  136. *(.bss)
  137. *(COMMON)
  138. }
  139. __bss_stop = .;
  140. _end = . ;
  141. PROVIDE (end = .);
  142. /* Sections to be discarded. */
  143. /DISCARD/ : {
  144. *(.exitcall.exit)
  145. *(.exit.data)
  146. }
  147. }