vmlinux.lds.S 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. INITCALLS
  45. }
  46. __initcall_end = .;
  47. #ifdef CONFIG_BLK_DEV_INITRD
  48. . = ALIGN(8192);
  49. __initramfs_start = .;
  50. .init.ramfs : { *(.init.ramfs) }
  51. __initramfs_end = .;
  52. #endif
  53. . = ALIGN(8);
  54. .con_initcall.init : {
  55. __con_initcall_start = .;
  56. *(.con_initcall.init)
  57. __con_initcall_end = .;
  58. }
  59. . = ALIGN(8);
  60. SECURITY_INIT
  61. . = ALIGN(8192);
  62. __per_cpu_start = .;
  63. .data.percpu : { *(.data.percpu) }
  64. __per_cpu_end = .;
  65. . = ALIGN(2*8192);
  66. __init_end = .;
  67. /* Freed after init ends here */
  68. /* Note 2 page alignment above. */
  69. .data.init_thread : { *(.data.init_thread) }
  70. . = ALIGN(8192);
  71. .data.page_aligned : { *(.data.page_aligned) }
  72. . = ALIGN(64);
  73. .data.cacheline_aligned : { *(.data.cacheline_aligned) }
  74. _data = .;
  75. .data : { /* Data */
  76. *(.data)
  77. CONSTRUCTORS
  78. }
  79. .got : { *(.got) }
  80. .sdata : { *(.sdata) }
  81. _edata = .; /* End of data section */
  82. __bss_start = .;
  83. .sbss : { *(.sbss) *(.scommon) }
  84. .bss : { *(.bss) *(COMMON) }
  85. __bss_stop = .;
  86. _end = .;
  87. /* Sections to be discarded */
  88. /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) }
  89. .mdebug 0 : { *(.mdebug) }
  90. .note 0 : { *(.note) }
  91. .comment 0 : { *(.comment) }
  92. /* Stabs debugging sections */
  93. .stab 0 : { *(.stab) }
  94. .stabstr 0 : { *(.stabstr) }
  95. .stab.excl 0 : { *(.stab.excl) }
  96. .stab.exclstr 0 : { *(.stab.exclstr) }
  97. .stab.index 0 : { *(.stab.index) }
  98. .stab.indexstr 0 : { *(.stab.indexstr) }
  99. /* DWARF 1 */
  100. .debug 0 : { *(.debug) }
  101. .line 0 : { *(.line) }
  102. /* GNU DWARF 1 extensions */
  103. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  104. .debug_sfnames 0 : { *(.debug_sfnames) }
  105. /* DWARF 1.1 and DWARF 2 */
  106. .debug_aranges 0 : { *(.debug_aranges) }
  107. .debug_pubnames 0 : { *(.debug_pubnames) }
  108. /* DWARF 2 */
  109. .debug_info 0 : { *(.debug_info) }
  110. .debug_abbrev 0 : { *(.debug_abbrev) }
  111. .debug_line 0 : { *(.debug_line) }
  112. .debug_frame 0 : { *(.debug_frame) }
  113. .debug_str 0 : { *(.debug_str) }
  114. .debug_loc 0 : { *(.debug_loc) }
  115. .debug_macinfo 0 : { *(.debug_macinfo) }
  116. /* SGI/MIPS DWARF 2 extensions */
  117. .debug_weaknames 0 : { *(.debug_weaknames) }
  118. .debug_funcnames 0 : { *(.debug_funcnames) }
  119. .debug_typenames 0 : { *(.debug_typenames) }
  120. .debug_varnames 0 : { *(.debug_varnames) }
  121. }