vmlinux.lds.S 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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. _sdata = .;
  90. /* The initial task and kernel stack */
  91. .data.init_task : {
  92. *(.data.init_task)
  93. }
  94. . = ALIGN(PAGE_SIZE);
  95. .data.page_aligned : {
  96. *(.data.page_aligned)
  97. }
  98. .data.cacheline_aligned : {
  99. *(.data.cacheline_aligned)
  100. }
  101. .data : {
  102. *(.data .data.rel* .toc1)
  103. *(.branch_lt)
  104. }
  105. .opd : {
  106. *(.opd)
  107. }
  108. .got : {
  109. __toc_start = .;
  110. *(.got)
  111. *(.toc)
  112. . = ALIGN(PAGE_SIZE);
  113. _edata = .;
  114. }
  115. . = ALIGN(PAGE_SIZE);
  116. .bss : {
  117. __bss_start = .;
  118. *(.bss)
  119. __bss_stop = .;
  120. }
  121. . = ALIGN(PAGE_SIZE);
  122. _end = . ;
  123. }