vmlinux.lds.S 3.3 KB

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