vmlinux.lds.S 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. *(.text)
  15. SCHED_TEXT
  16. LOCK_TEXT
  17. KPROBES_TEXT
  18. *(.gnu.warning)
  19. } =0
  20. _etext = .;
  21. PROVIDE (etext = .);
  22. RODATA
  23. .data :
  24. {
  25. *(.data)
  26. CONSTRUCTORS
  27. }
  28. .data1 : { *(.data1) }
  29. . = ALIGN(64);
  30. .data.cacheline_aligned : { *(.data.cacheline_aligned) }
  31. . = ALIGN(64);
  32. .data.read_mostly : { *(.data.read_mostly) }
  33. _edata = .;
  34. PROVIDE (edata = .);
  35. .fixup : { *(.fixup) }
  36. . = ALIGN(16);
  37. __start___ex_table = .;
  38. __ex_table : { *(__ex_table) }
  39. __stop___ex_table = .;
  40. . = ALIGN(8192);
  41. __init_begin = .;
  42. .init.text : {
  43. _sinittext = .;
  44. *(.init.text)
  45. _einittext = .;
  46. }
  47. .init.data : { *(.init.data) }
  48. . = ALIGN(16);
  49. __setup_start = .;
  50. .init.setup : { *(.init.setup) }
  51. __setup_end = .;
  52. __initcall_start = .;
  53. .initcall.init : {
  54. INITCALLS
  55. }
  56. __initcall_end = .;
  57. __con_initcall_start = .;
  58. .con_initcall.init : { *(.con_initcall.init) }
  59. __con_initcall_end = .;
  60. SECURITY_INIT
  61. . = ALIGN(4);
  62. __tsb_ldquad_phys_patch = .;
  63. .tsb_ldquad_phys_patch : { *(.tsb_ldquad_phys_patch) }
  64. __tsb_ldquad_phys_patch_end = .;
  65. __tsb_phys_patch = .;
  66. .tsb_phys_patch : { *(.tsb_phys_patch) }
  67. __tsb_phys_patch_end = .;
  68. __cpuid_patch = .;
  69. .cpuid_patch : { *(.cpuid_patch) }
  70. __cpuid_patch_end = .;
  71. __sun4v_1insn_patch = .;
  72. .sun4v_1insn_patch : { *(.sun4v_1insn_patch) }
  73. __sun4v_1insn_patch_end = .;
  74. __sun4v_2insn_patch = .;
  75. .sun4v_2insn_patch : { *(.sun4v_2insn_patch) }
  76. __sun4v_2insn_patch_end = .;
  77. . = ALIGN(8192);
  78. __initramfs_start = .;
  79. .init.ramfs : { *(.init.ramfs) }
  80. __initramfs_end = .;
  81. . = ALIGN(8192);
  82. __per_cpu_start = .;
  83. .data.percpu : { *(.data.percpu) }
  84. __per_cpu_end = .;
  85. . = ALIGN(8192);
  86. __init_end = .;
  87. __bss_start = .;
  88. .sbss : { *(.sbss) *(.scommon) }
  89. .bss :
  90. {
  91. *(.dynbss)
  92. *(.bss)
  93. *(COMMON)
  94. }
  95. _end = . ;
  96. PROVIDE (end = .);
  97. /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) }
  98. STABS_DEBUG
  99. DWARF_DEBUG
  100. }