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. SCHED_TEXT
  35. LOCK_TEXT
  36. *(.fixup)
  37. *(.got1)
  38. __got2_start = .;
  39. *(.got2)
  40. __got2_end = .;
  41. }
  42. _etext = .;
  43. PROVIDE (etext = .);
  44. RODATA
  45. .fini : { *(.fini) } =0
  46. .ctors : { *(.ctors) }
  47. .dtors : { *(.dtors) }
  48. .fixup : { *(.fixup) }
  49. __ex_table : {
  50. __start___ex_table = .;
  51. *(__ex_table)
  52. __stop___ex_table = .;
  53. }
  54. __bug_table : {
  55. __start___bug_table = .;
  56. *(__bug_table)
  57. __stop___bug_table = .;
  58. }
  59. /* Read-write section, merged into data segment: */
  60. . = ALIGN(4096);
  61. .data :
  62. {
  63. *(.data)
  64. *(.data1)
  65. *(.sdata)
  66. *(.sdata2)
  67. *(.got.plt) *(.got)
  68. *(.dynamic)
  69. CONSTRUCTORS
  70. }
  71. . = ALIGN(4096);
  72. __nosave_begin = .;
  73. .data_nosave : { *(.data.nosave) }
  74. . = ALIGN(4096);
  75. __nosave_end = .;
  76. . = ALIGN(32);
  77. .data.cacheline_aligned : { *(.data.cacheline_aligned) }
  78. _edata = .;
  79. PROVIDE (edata = .);
  80. . = ALIGN(8192);
  81. .data.init_task : { *(.data.init_task) }
  82. . = ALIGN(4096);
  83. __init_begin = .;
  84. .init.text : {
  85. _sinittext = .;
  86. *(.init.text)
  87. _einittext = .;
  88. }
  89. /* .exit.text is discarded at runtime, not link time,
  90. to deal with references from __bug_table */
  91. .exit.text : { *(.exit.text) }
  92. .init.data : {
  93. *(.init.data);
  94. __vtop_table_begin = .;
  95. *(.vtop_fixup);
  96. __vtop_table_end = .;
  97. __ptov_table_begin = .;
  98. *(.ptov_fixup);
  99. __ptov_table_end = .;
  100. }
  101. . = ALIGN(16);
  102. __setup_start = .;
  103. .init.setup : { *(.init.setup) }
  104. __setup_end = .;
  105. __initcall_start = .;
  106. .initcall.init : {
  107. INITCALLS
  108. }
  109. __initcall_end = .;
  110. __con_initcall_start = .;
  111. .con_initcall.init : { *(.con_initcall.init) }
  112. __con_initcall_end = .;
  113. SECURITY_INIT
  114. __start___ftr_fixup = .;
  115. __ftr_fixup : { *(__ftr_fixup) }
  116. __stop___ftr_fixup = .;
  117. . = ALIGN(32);
  118. __per_cpu_start = .;
  119. .data.percpu : { *(.data.percpu) }
  120. __per_cpu_end = .;
  121. . = ALIGN(4096);
  122. __initramfs_start = .;
  123. .init.ramfs : { *(.init.ramfs) }
  124. __initramfs_end = .;
  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. }