vmlinux.lds.S 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. #include <asm-generic/vmlinux.lds.h>
  2. #include <asm/thread_info.h>
  3. #include <asm/page.h>
  4. OUTPUT_FORMAT("elf64-alpha")
  5. OUTPUT_ARCH(alpha)
  6. ENTRY(__start)
  7. PHDRS { kernel PT_LOAD; note PT_NOTE; }
  8. jiffies = jiffies_64;
  9. SECTIONS
  10. {
  11. #ifdef CONFIG_ALPHA_LEGACY_START_ADDRESS
  12. . = 0xfffffc0000310000;
  13. #else
  14. . = 0xfffffc0001010000;
  15. #endif
  16. _text = .; /* Text and read-only data */
  17. .text : {
  18. HEAD_TEXT
  19. TEXT_TEXT
  20. SCHED_TEXT
  21. LOCK_TEXT
  22. *(.fixup)
  23. *(.gnu.warning)
  24. } :kernel
  25. _etext = .; /* End of text section */
  26. NOTES :kernel :note
  27. .dummy : {
  28. *(.dummy)
  29. } :kernel
  30. RODATA
  31. /* Exception table */
  32. . = ALIGN(16);
  33. __ex_table : {
  34. __start___ex_table = .;
  35. *(__ex_table)
  36. __stop___ex_table = .;
  37. }
  38. /* Will be freed after init */
  39. . = ALIGN(PAGE_SIZE);
  40. /* Init code and data */
  41. __init_begin = .;
  42. .init.text : {
  43. _sinittext = .;
  44. INIT_TEXT
  45. _einittext = .;
  46. }
  47. .init.data : {
  48. INIT_DATA
  49. }
  50. . = ALIGN(16);
  51. .init.setup : {
  52. __setup_start = .;
  53. *(.init.setup)
  54. __setup_end = .;
  55. }
  56. . = ALIGN(8);
  57. .initcall.init : {
  58. __initcall_start = .;
  59. INITCALLS
  60. __initcall_end = .;
  61. }
  62. #ifdef CONFIG_BLK_DEV_INITRD
  63. . = ALIGN(PAGE_SIZE);
  64. .init.ramfs : {
  65. __initramfs_start = .;
  66. *(.init.ramfs)
  67. __initramfs_end = .;
  68. }
  69. #endif
  70. . = ALIGN(8);
  71. .con_initcall.init : {
  72. __con_initcall_start = .;
  73. *(.con_initcall.init)
  74. __con_initcall_end = .;
  75. }
  76. . = ALIGN(8);
  77. SECURITY_INIT
  78. PERCPU(PAGE_SIZE)
  79. . = ALIGN(2 * PAGE_SIZE);
  80. __init_end = .;
  81. /* Freed after init ends here */
  82. /* Note 2 page alignment above. */
  83. .data.init_thread : {
  84. *(.data.init_thread)
  85. }
  86. . = ALIGN(PAGE_SIZE);
  87. .data.page_aligned : {
  88. *(.data.page_aligned)
  89. }
  90. . = ALIGN(64);
  91. .data.cacheline_aligned : {
  92. *(.data.cacheline_aligned)
  93. }
  94. _data = .;
  95. /* Data */
  96. .data : {
  97. DATA_DATA
  98. CONSTRUCTORS
  99. }
  100. .got : {
  101. *(.got)
  102. }
  103. .sdata : {
  104. *(.sdata)
  105. }
  106. _edata = .; /* End of data section */
  107. __bss_start = .;
  108. .sbss : {
  109. *(.sbss)
  110. *(.scommon)
  111. }
  112. .bss : {
  113. *(.bss)
  114. *(COMMON)
  115. }
  116. __bss_stop = .;
  117. _end = .;
  118. .mdebug 0 : {
  119. *(.mdebug)
  120. }
  121. .note 0 : {
  122. *(.note)
  123. }
  124. STABS_DEBUG
  125. DWARF_DEBUG
  126. DISCARDS
  127. }