vmlinux.lds.S 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. #include <asm/page.h>
  2. #include <asm-generic/vmlinux.lds.h>
  3. OUTPUT_ARCH(powerpc:common64)
  4. jiffies = jiffies_64;
  5. SECTIONS
  6. {
  7. /* Sections to be discarded. */
  8. /DISCARD/ : {
  9. *(.exitcall.exit)
  10. }
  11. /* Read-only sections, merged into text segment: */
  12. .text : {
  13. *(.text .text.*)
  14. SCHED_TEXT
  15. LOCK_TEXT
  16. KPROBES_TEXT
  17. *(.fixup)
  18. . = ALIGN(PAGE_SIZE);
  19. _etext = .;
  20. }
  21. __ex_table : {
  22. __start___ex_table = .;
  23. *(__ex_table)
  24. __stop___ex_table = .;
  25. }
  26. __bug_table : {
  27. __start___bug_table = .;
  28. *(__bug_table)
  29. __stop___bug_table = .;
  30. }
  31. __ftr_fixup : {
  32. __start___ftr_fixup = .;
  33. *(__ftr_fixup)
  34. __stop___ftr_fixup = .;
  35. }
  36. RODATA
  37. /* will be freed after init */
  38. . = ALIGN(PAGE_SIZE);
  39. __init_begin = .;
  40. .init.text : {
  41. _sinittext = .;
  42. *(.init.text)
  43. _einittext = .;
  44. }
  45. .init.data : {
  46. *(.init.data)
  47. }
  48. . = ALIGN(16);
  49. .init.setup : {
  50. __setup_start = .;
  51. *(.init.setup)
  52. __setup_end = .;
  53. }
  54. .initcall.init : {
  55. __initcall_start = .;
  56. *(.initcall1.init)
  57. *(.initcall2.init)
  58. *(.initcall3.init)
  59. *(.initcall4.init)
  60. *(.initcall5.init)
  61. *(.initcall6.init)
  62. *(.initcall7.init)
  63. __initcall_end = .;
  64. }
  65. .con_initcall.init : {
  66. __con_initcall_start = .;
  67. *(.con_initcall.init)
  68. __con_initcall_end = .;
  69. }
  70. SECURITY_INIT
  71. . = ALIGN(PAGE_SIZE);
  72. .init.ramfs : {
  73. __initramfs_start = .;
  74. *(.init.ramfs)
  75. __initramfs_end = .;
  76. }
  77. .data.percpu : {
  78. __per_cpu_start = .;
  79. *(.data.percpu)
  80. __per_cpu_end = .;
  81. }
  82. . = ALIGN(PAGE_SIZE);
  83. . = ALIGN(16384);
  84. __init_end = .;
  85. /* freed after init ends here */
  86. /* Read/write sections */
  87. . = ALIGN(PAGE_SIZE);
  88. . = ALIGN(16384);
  89. /* The initial task and kernel stack */
  90. .data.init_task : {
  91. *(.data.init_task)
  92. }
  93. . = ALIGN(PAGE_SIZE);
  94. .data.page_aligned : {
  95. *(.data.page_aligned)
  96. }
  97. .data.cacheline_aligned : {
  98. *(.data.cacheline_aligned)
  99. }
  100. .data : {
  101. *(.data .data.rel* .toc1)
  102. *(.branch_lt)
  103. }
  104. .opd : {
  105. *(.opd)
  106. }
  107. .got : {
  108. __toc_start = .;
  109. *(.got)
  110. *(.toc)
  111. . = ALIGN(PAGE_SIZE);
  112. _edata = .;
  113. }
  114. . = ALIGN(PAGE_SIZE);
  115. .bss : {
  116. __bss_start = .;
  117. *(.bss)
  118. __bss_stop = .;
  119. }
  120. . = ALIGN(PAGE_SIZE);
  121. _end = . ;
  122. }