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. NOTES
  42. . = ALIGN(PAGE_SIZE);
  43. __init_begin = .;
  44. .init.text : {
  45. _sinittext = .;
  46. *(.init.text)
  47. _einittext = .;
  48. }
  49. .init.data : { *(.init.data) }
  50. . = ALIGN(16);
  51. __setup_start = .;
  52. .init.setup : { *(.init.setup) }
  53. __setup_end = .;
  54. __initcall_start = .;
  55. .initcall.init : {
  56. INITCALLS
  57. }
  58. __initcall_end = .;
  59. __con_initcall_start = .;
  60. .con_initcall.init : { *(.con_initcall.init) }
  61. __con_initcall_end = .;
  62. SECURITY_INIT
  63. . = ALIGN(4);
  64. __tsb_ldquad_phys_patch = .;
  65. .tsb_ldquad_phys_patch : { *(.tsb_ldquad_phys_patch) }
  66. __tsb_ldquad_phys_patch_end = .;
  67. __tsb_phys_patch = .;
  68. .tsb_phys_patch : { *(.tsb_phys_patch) }
  69. __tsb_phys_patch_end = .;
  70. __cpuid_patch = .;
  71. .cpuid_patch : { *(.cpuid_patch) }
  72. __cpuid_patch_end = .;
  73. __sun4v_1insn_patch = .;
  74. .sun4v_1insn_patch : { *(.sun4v_1insn_patch) }
  75. __sun4v_1insn_patch_end = .;
  76. __sun4v_2insn_patch = .;
  77. .sun4v_2insn_patch : { *(.sun4v_2insn_patch) }
  78. __sun4v_2insn_patch_end = .;
  79. #ifdef CONFIG_BLK_DEV_INITRD
  80. . = ALIGN(PAGE_SIZE);
  81. __initramfs_start = .;
  82. .init.ramfs : { *(.init.ramfs) }
  83. __initramfs_end = .;
  84. #endif
  85. PERCPU(PAGE_SIZE)
  86. . = ALIGN(PAGE_SIZE);
  87. __init_end = .;
  88. __bss_start = .;
  89. .sbss : { *(.sbss) *(.scommon) }
  90. .bss :
  91. {
  92. *(.dynbss)
  93. *(.bss)
  94. *(COMMON)
  95. }
  96. _end = . ;
  97. PROVIDE (end = .);
  98. /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) }
  99. STABS_DEBUG
  100. DWARF_DEBUG
  101. }