vmlinux.lds.S 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. #include <asm-generic/vmlinux.lds.h>
  2. #include <asm/page.h>
  3. #include <asm/thread_info.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. . = ALIGN(PAGE_SIZE);
  83. .data.page_aligned : {
  84. *(.data.page_aligned)
  85. }
  86. . = ALIGN(64);
  87. .data.cacheline_aligned : {
  88. *(.data.cacheline_aligned)
  89. }
  90. _data = .;
  91. /* Data */
  92. .data : {
  93. INIT_TASK_DATA(THREAD_SIZE)
  94. DATA_DATA
  95. CONSTRUCTORS
  96. }
  97. .got : {
  98. *(.got)
  99. }
  100. .sdata : {
  101. *(.sdata)
  102. }
  103. _edata = .; /* End of data section */
  104. __bss_start = .;
  105. .sbss : {
  106. *(.sbss)
  107. *(.scommon)
  108. }
  109. .bss : {
  110. *(.bss)
  111. *(COMMON)
  112. }
  113. __bss_stop = .;
  114. _end = .;
  115. .mdebug 0 : {
  116. *(.mdebug)
  117. }
  118. .note 0 : {
  119. *(.note)
  120. }
  121. STABS_DEBUG
  122. DWARF_DEBUG
  123. DISCARDS
  124. }