vmlinux.lds.S 2.4 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_pmd_dir = 0x0000000000402000;
  10. empty_pg_dir = 0x0000000000403000;
  11. . = 0x4000;
  12. .text 0x0000000000404000 :
  13. {
  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. *(.initcall1.init)
  55. *(.initcall2.init)
  56. *(.initcall3.init)
  57. *(.initcall4.init)
  58. *(.initcall5.init)
  59. *(.initcall6.init)
  60. *(.initcall7.init)
  61. }
  62. __initcall_end = .;
  63. __con_initcall_start = .;
  64. .con_initcall.init : { *(.con_initcall.init) }
  65. __con_initcall_end = .;
  66. SECURITY_INIT
  67. . = ALIGN(8192);
  68. __initramfs_start = .;
  69. .init.ramfs : { *(.init.ramfs) }
  70. __initramfs_end = .;
  71. . = ALIGN(8192);
  72. __per_cpu_start = .;
  73. .data.percpu : { *(.data.percpu) }
  74. __per_cpu_end = .;
  75. . = ALIGN(8192);
  76. __init_end = .;
  77. __bss_start = .;
  78. .sbss : { *(.sbss) *(.scommon) }
  79. .bss :
  80. {
  81. *(.dynbss)
  82. *(.bss)
  83. *(COMMON)
  84. }
  85. _end = . ;
  86. PROVIDE (end = .);
  87. /* Stabs debugging sections. */
  88. .stab 0 : { *(.stab) }
  89. .stabstr 0 : { *(.stabstr) }
  90. .stab.excl 0 : { *(.stab.excl) }
  91. .stab.exclstr 0 : { *(.stab.exclstr) }
  92. .stab.index 0 : { *(.stab.index) }
  93. .stab.indexstr 0 : { *(.stab.indexstr) }
  94. .comment 0 : { *(.comment) }
  95. .debug 0 : { *(.debug) }
  96. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  97. .debug_aranges 0 : { *(.debug_aranges) }
  98. .debug_pubnames 0 : { *(.debug_pubnames) }
  99. .debug_sfnames 0 : { *(.debug_sfnames) }
  100. .line 0 : { *(.line) }
  101. /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) }
  102. }