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