vmlinux.lds.S 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. #include <asm-generic/vmlinux.lds.h>
  2. OUTPUT_FORMAT("elf64-alpha")
  3. OUTPUT_ARCH(alpha)
  4. ENTRY(__start)
  5. PHDRS { kernel PT_LOAD ; }
  6. jiffies = jiffies_64;
  7. SECTIONS
  8. {
  9. #ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS
  10. . = 0xfffffc0000310000;
  11. #else
  12. . = 0xfffffc0001010000;
  13. #endif
  14. _text = .; /* Text and read-only data */
  15. .text : {
  16. *(.text)
  17. SCHED_TEXT
  18. LOCK_TEXT
  19. *(.fixup)
  20. *(.gnu.warning)
  21. } :kernel
  22. _etext = .; /* End of text section */
  23. . = ALIGN(16);
  24. __start___ex_table = .; /* Exception table */
  25. __ex_table : { *(__ex_table) }
  26. __stop___ex_table = .;
  27. RODATA
  28. /* Will be freed after init */
  29. . = ALIGN(8192); /* Init code and data */
  30. __init_begin = .;
  31. .init.text : {
  32. _sinittext = .;
  33. *(.init.text)
  34. _einittext = .;
  35. }
  36. .init.data : { *(.init.data) }
  37. . = ALIGN(16);
  38. __setup_start = .;
  39. .init.setup : { *(.init.setup) }
  40. __setup_end = .;
  41. . = ALIGN(8);
  42. __initcall_start = .;
  43. .initcall.init : {
  44. *(.initcall1.init)
  45. *(.initcall2.init)
  46. *(.initcall3.init)
  47. *(.initcall4.init)
  48. *(.initcall5.init)
  49. *(.initcall6.init)
  50. *(.initcall7.init)
  51. }
  52. __initcall_end = .;
  53. . = ALIGN(8192);
  54. __initramfs_start = .;
  55. .init.ramfs : { *(.init.ramfs) }
  56. __initramfs_end = .;
  57. . = ALIGN(8);
  58. .con_initcall.init : {
  59. __con_initcall_start = .;
  60. *(.con_initcall.init)
  61. __con_initcall_end = .;
  62. }
  63. . = ALIGN(8);
  64. SECURITY_INIT
  65. . = ALIGN(64);
  66. __per_cpu_start = .;
  67. .data.percpu : { *(.data.percpu) }
  68. __per_cpu_end = .;
  69. . = ALIGN(2*8192);
  70. __init_end = .;
  71. /* Freed after init ends here */
  72. /* Note 2 page alignment above. */
  73. .data.init_thread : { *(.data.init_thread) }
  74. . = ALIGN(8192);
  75. .data.page_aligned : { *(.data.page_aligned) }
  76. . = ALIGN(64);
  77. .data.cacheline_aligned : { *(.data.cacheline_aligned) }
  78. _data = .;
  79. .data : { /* Data */
  80. *(.data)
  81. CONSTRUCTORS
  82. }
  83. .got : { *(.got) }
  84. .sdata : { *(.sdata) }
  85. _edata = .; /* End of data section */
  86. __bss_start = .;
  87. .sbss : { *(.sbss) *(.scommon) }
  88. .bss : { *(.bss) *(COMMON) }
  89. __bss_stop = .;
  90. _end = .;
  91. /* Sections to be discarded */
  92. /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) }
  93. .mdebug 0 : { *(.mdebug) }
  94. .note 0 : { *(.note) }
  95. .comment 0 : { *(.comment) }
  96. /* Stabs debugging sections */
  97. .stab 0 : { *(.stab) }
  98. .stabstr 0 : { *(.stabstr) }
  99. .stab.excl 0 : { *(.stab.excl) }
  100. .stab.exclstr 0 : { *(.stab.exclstr) }
  101. .stab.index 0 : { *(.stab.index) }
  102. .stab.indexstr 0 : { *(.stab.indexstr) }
  103. /* DWARF 1 */
  104. .debug 0 : { *(.debug) }
  105. .line 0 : { *(.line) }
  106. /* GNU DWARF 1 extensions */
  107. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  108. .debug_sfnames 0 : { *(.debug_sfnames) }
  109. /* DWARF 1.1 and DWARF 2 */
  110. .debug_aranges 0 : { *(.debug_aranges) }
  111. .debug_pubnames 0 : { *(.debug_pubnames) }
  112. /* DWARF 2 */
  113. .debug_info 0 : { *(.debug_info) }
  114. .debug_abbrev 0 : { *(.debug_abbrev) }
  115. .debug_line 0 : { *(.debug_line) }
  116. .debug_frame 0 : { *(.debug_frame) }
  117. .debug_str 0 : { *(.debug_str) }
  118. .debug_loc 0 : { *(.debug_loc) }
  119. .debug_macinfo 0 : { *(.debug_macinfo) }
  120. /* SGI/MIPS DWARF 2 extensions */
  121. .debug_weaknames 0 : { *(.debug_weaknames) }
  122. .debug_funcnames 0 : { *(.debug_funcnames) }
  123. .debug_typenames 0 : { *(.debug_typenames) }
  124. .debug_varnames 0 : { *(.debug_varnames) }
  125. }