vmlinux.lds.S 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. INITCALLS
  54. }
  55. __initcall_end = .;
  56. __con_initcall_start = .;
  57. .con_initcall.init : { *(.con_initcall.init) }
  58. __con_initcall_end = .;
  59. SECURITY_INIT
  60. . = ALIGN(4);
  61. __tsb_ldquad_phys_patch = .;
  62. .tsb_ldquad_phys_patch : { *(.tsb_ldquad_phys_patch) }
  63. __tsb_ldquad_phys_patch_end = .;
  64. __tsb_phys_patch = .;
  65. .tsb_phys_patch : { *(.tsb_phys_patch) }
  66. __tsb_phys_patch_end = .;
  67. __cpuid_patch = .;
  68. .cpuid_patch : { *(.cpuid_patch) }
  69. __cpuid_patch_end = .;
  70. __sun4v_1insn_patch = .;
  71. .sun4v_1insn_patch : { *(.sun4v_1insn_patch) }
  72. __sun4v_1insn_patch_end = .;
  73. __sun4v_2insn_patch = .;
  74. .sun4v_2insn_patch : { *(.sun4v_2insn_patch) }
  75. __sun4v_2insn_patch_end = .;
  76. . = ALIGN(8192);
  77. __initramfs_start = .;
  78. .init.ramfs : { *(.init.ramfs) }
  79. __initramfs_end = .;
  80. . = ALIGN(8192);
  81. __per_cpu_start = .;
  82. .data.percpu : { *(.data.percpu) }
  83. __per_cpu_end = .;
  84. . = ALIGN(8192);
  85. __init_end = .;
  86. __bss_start = .;
  87. .sbss : { *(.sbss) *(.scommon) }
  88. .bss :
  89. {
  90. *(.dynbss)
  91. *(.bss)
  92. *(COMMON)
  93. }
  94. _end = . ;
  95. PROVIDE (end = .);
  96. /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) }
  97. STABS_DEBUG
  98. DWARF_DEBUG
  99. }