vmlinux.lds.S 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. . = ALIGN(4096);
  84. __init_begin = .;
  85. .init.text : {
  86. _sinittext = .;
  87. *(.init.text)
  88. _einittext = .;
  89. }
  90. /* .exit.text is discarded at runtime, not link time,
  91. to deal with references from __bug_table */
  92. .exit.text : { *(.exit.text) }
  93. .init.data : {
  94. *(.init.data);
  95. __vtop_table_begin = .;
  96. *(.vtop_fixup);
  97. __vtop_table_end = .;
  98. __ptov_table_begin = .;
  99. *(.ptov_fixup);
  100. __ptov_table_end = .;
  101. }
  102. . = ALIGN(16);
  103. __setup_start = .;
  104. .init.setup : { *(.init.setup) }
  105. __setup_end = .;
  106. __initcall_start = .;
  107. .initcall.init : {
  108. INITCALLS
  109. }
  110. __initcall_end = .;
  111. __con_initcall_start = .;
  112. .con_initcall.init : { *(.con_initcall.init) }
  113. __con_initcall_end = .;
  114. SECURITY_INIT
  115. __start___ftr_fixup = .;
  116. __ftr_fixup : { *(__ftr_fixup) }
  117. __stop___ftr_fixup = .;
  118. PERCPU(4096)
  119. #ifdef CONFIG_BLK_DEV_INITRD
  120. . = ALIGN(4096);
  121. __initramfs_start = .;
  122. .init.ramfs : { *(.init.ramfs) }
  123. __initramfs_end = .;
  124. #endif
  125. . = ALIGN(4096);
  126. __init_end = .;
  127. . = ALIGN(4096);
  128. _sextratext = .;
  129. _eextratext = .;
  130. __bss_start = .;
  131. .bss :
  132. {
  133. *(.sbss) *(.scommon)
  134. *(.dynbss)
  135. *(.bss)
  136. *(COMMON)
  137. }
  138. __bss_stop = .;
  139. _end = . ;
  140. PROVIDE (end = .);
  141. /* Sections to be discarded. */
  142. /DISCARD/ : {
  143. *(.exitcall.exit)
  144. *(.exit.data)
  145. }
  146. }