vmlinux.lds.S 2.3 KB

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