vmlinux.lds.S 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. .dynsym : { *(.dynsym) }
  11. .dynstr : { *(.dynstr) }
  12. .rel.text : { *(.rel.text) }
  13. .rela.text : { *(.rela.text) }
  14. .rel.data : { *(.rel.data) }
  15. .rela.data : { *(.rela.data) }
  16. .rel.rodata : { *(.rel.rodata) }
  17. .rela.rodata : { *(.rela.rodata) }
  18. .rel.got : { *(.rel.got) }
  19. .rela.got : { *(.rela.got) }
  20. .rel.ctors : { *(.rel.ctors) }
  21. .rela.ctors : { *(.rela.ctors) }
  22. .rel.dtors : { *(.rel.dtors) }
  23. .rela.dtors : { *(.rela.dtors) }
  24. .rel.bss : { *(.rel.bss) }
  25. .rela.bss : { *(.rela.bss) }
  26. .rel.plt : { *(.rel.plt) }
  27. .rela.plt : { *(.rela.plt) }
  28. /* .init : { *(.init) } =0*/
  29. .plt : { *(.plt) }
  30. .text :
  31. {
  32. *(.text)
  33. SCHED_TEXT
  34. LOCK_TEXT
  35. *(.fixup)
  36. *(.got1)
  37. __got2_start = .;
  38. *(.got2)
  39. __got2_end = .;
  40. }
  41. _etext = .;
  42. PROVIDE (etext = .);
  43. RODATA
  44. .fini : { *(.fini) } =0
  45. .ctors : { *(.ctors) }
  46. .dtors : { *(.dtors) }
  47. .fixup : { *(.fixup) }
  48. __ex_table : {
  49. __start___ex_table = .;
  50. *(__ex_table)
  51. __stop___ex_table = .;
  52. }
  53. __bug_table : {
  54. __start___bug_table = .;
  55. *(__bug_table)
  56. __stop___bug_table = .;
  57. }
  58. /* Read-write section, merged into data segment: */
  59. . = ALIGN(4096);
  60. .data :
  61. {
  62. *(.data)
  63. *(.data1)
  64. *(.sdata)
  65. *(.sdata2)
  66. *(.got.plt) *(.got)
  67. *(.dynamic)
  68. CONSTRUCTORS
  69. }
  70. . = ALIGN(4096);
  71. __nosave_begin = .;
  72. .data_nosave : { *(.data.nosave) }
  73. . = ALIGN(4096);
  74. __nosave_end = .;
  75. . = ALIGN(32);
  76. .data.cacheline_aligned : { *(.data.cacheline_aligned) }
  77. _edata = .;
  78. PROVIDE (edata = .);
  79. . = ALIGN(8192);
  80. .data.init_task : { *(.data.init_task) }
  81. . = ALIGN(4096);
  82. __init_begin = .;
  83. .init.text : {
  84. _sinittext = .;
  85. *(.init.text)
  86. _einittext = .;
  87. }
  88. .init.data : {
  89. *(.init.data);
  90. __vtop_table_begin = .;
  91. *(.vtop_fixup);
  92. __vtop_table_end = .;
  93. __ptov_table_begin = .;
  94. *(.ptov_fixup);
  95. __ptov_table_end = .;
  96. }
  97. . = ALIGN(16);
  98. __setup_start = .;
  99. .init.setup : { *(.init.setup) }
  100. __setup_end = .;
  101. __initcall_start = .;
  102. .initcall.init : {
  103. *(.initcall1.init)
  104. *(.initcall2.init)
  105. *(.initcall3.init)
  106. *(.initcall4.init)
  107. *(.initcall5.init)
  108. *(.initcall6.init)
  109. *(.initcall7.init)
  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. . = ALIGN(32);
  120. __per_cpu_start = .;
  121. .data.percpu : { *(.data.percpu) }
  122. __per_cpu_end = .;
  123. . = ALIGN(4096);
  124. __initramfs_start = .;
  125. .init.ramfs : { *(.init.ramfs) }
  126. __initramfs_end = .;
  127. . = ALIGN(4096);
  128. __init_end = .;
  129. . = ALIGN(4096);
  130. _sextratext = .;
  131. __pmac_begin = .;
  132. .pmac.text : { *(.pmac.text) }
  133. .pmac.data : { *(.pmac.data) }
  134. . = ALIGN(4096);
  135. __pmac_end = .;
  136. . = ALIGN(4096);
  137. __prep_begin = .;
  138. .prep.text : { *(.prep.text) }
  139. .prep.data : { *(.prep.data) }
  140. . = ALIGN(4096);
  141. __prep_end = .;
  142. . = ALIGN(4096);
  143. __chrp_begin = .;
  144. .chrp.text : { *(.chrp.text) }
  145. .chrp.data : { *(.chrp.data) }
  146. . = ALIGN(4096);
  147. __chrp_end = .;
  148. . = ALIGN(4096);
  149. __openfirmware_begin = .;
  150. .openfirmware.text : { *(.openfirmware.text) }
  151. .openfirmware.data : { *(.openfirmware.data) }
  152. . = ALIGN(4096);
  153. __openfirmware_end = .;
  154. _eextratext = .;
  155. __bss_start = .;
  156. .bss :
  157. {
  158. *(.sbss) *(.scommon)
  159. *(.dynbss)
  160. *(.bss)
  161. *(COMMON)
  162. }
  163. __bss_stop = .;
  164. _end = . ;
  165. PROVIDE (end = .);
  166. /* Sections to be discarded. */
  167. /DISCARD/ : {
  168. *(.exitcall.exit)
  169. }
  170. }