vmlinux.lds.S 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /* ld script to make UltraLinux kernel */
  2. #include <asm-generic/vmlinux.lds.h>
  3. OUTPUT_FORMAT("elf64-sparc", "elf64-sparc", "elf64-sparc")
  4. OUTPUT_ARCH(sparc:v9a)
  5. ENTRY(_start)
  6. jiffies = jiffies_64;
  7. SECTIONS
  8. {
  9. swapper_low_pmd_dir = 0x0000000000402000;
  10. . = 0x4000;
  11. .text 0x0000000000404000 :
  12. {
  13. *(.text)
  14. SCHED_TEXT
  15. LOCK_TEXT
  16. KPROBES_TEXT
  17. *(.gnu.warning)
  18. } =0
  19. _etext = .;
  20. PROVIDE (etext = .);
  21. RODATA
  22. .data :
  23. {
  24. *(.data)
  25. CONSTRUCTORS
  26. }
  27. .data1 : { *(.data1) }
  28. . = ALIGN(64);
  29. .data.cacheline_aligned : { *(.data.cacheline_aligned) }
  30. . = ALIGN(64);
  31. .data.read_mostly : { *(.data.read_mostly) }
  32. _edata = .;
  33. PROVIDE (edata = .);
  34. .fixup : { *(.fixup) }
  35. . = ALIGN(16);
  36. __start___ex_table = .;
  37. __ex_table : { *(__ex_table) }
  38. __stop___ex_table = .;
  39. . = ALIGN(8192);
  40. __init_begin = .;
  41. .init.text : {
  42. _sinittext = .;
  43. *(.init.text)
  44. _einittext = .;
  45. }
  46. .init.data : { *(.init.data) }
  47. . = ALIGN(16);
  48. __setup_start = .;
  49. .init.setup : { *(.init.setup) }
  50. __setup_end = .;
  51. __initcall_start = .;
  52. .initcall.init : {
  53. *(.initcall1.init)
  54. *(.initcall2.init)
  55. *(.initcall3.init)
  56. *(.initcall4.init)
  57. *(.initcall5.init)
  58. *(.initcall6.init)
  59. *(.initcall7.init)
  60. }
  61. __initcall_end = .;
  62. __con_initcall_start = .;
  63. .con_initcall.init : { *(.con_initcall.init) }
  64. __con_initcall_end = .;
  65. SECURITY_INIT
  66. . = ALIGN(4);
  67. __tsb_ldquad_phys_patch = .;
  68. .tsb_ldquad_phys_patch : { *(.tsb_ldquad_phys_patch) }
  69. __tsb_ldquad_phys_patch_end = .;
  70. __tsb_phys_patch = .;
  71. .tsb_phys_patch : { *(.tsb_phys_patch) }
  72. __tsb_phys_patch_end = .;
  73. __cpuid_patch = .;
  74. .cpuid_patch : { *(.cpuid_patch) }
  75. __cpuid_patch_end = .;
  76. __sun4v_1insn_patch = .;
  77. .sun4v_1insn_patch : { *(.sun4v_1insn_patch) }
  78. __sun4v_1insn_patch_end = .;
  79. __sun4v_2insn_patch = .;
  80. .sun4v_2insn_patch : { *(.sun4v_2insn_patch) }
  81. __sun4v_2insn_patch_end = .;
  82. . = ALIGN(8192);
  83. __initramfs_start = .;
  84. .init.ramfs : { *(.init.ramfs) }
  85. __initramfs_end = .;
  86. . = ALIGN(8192);
  87. __per_cpu_start = .;
  88. .data.percpu : { *(.data.percpu) }
  89. __per_cpu_end = .;
  90. . = ALIGN(8192);
  91. __init_end = .;
  92. __bss_start = .;
  93. .sbss : { *(.sbss) *(.scommon) }
  94. .bss :
  95. {
  96. *(.dynbss)
  97. *(.bss)
  98. *(COMMON)
  99. }
  100. _end = . ;
  101. PROVIDE (end = .);
  102. /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) }
  103. STABS_DEBUG
  104. DWARF_DEBUG
  105. }