vmlinux.lds.S 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. *(.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. _edata = .;
  31. PROVIDE (edata = .);
  32. .fixup : { *(.fixup) }
  33. . = ALIGN(16);
  34. __start___ex_table = .;
  35. __ex_table : { *(__ex_table) }
  36. __stop___ex_table = .;
  37. . = ALIGN(8192);
  38. __init_begin = .;
  39. .init.text : {
  40. _sinittext = .;
  41. *(.init.text)
  42. _einittext = .;
  43. }
  44. .init.data : { *(.init.data) }
  45. . = ALIGN(16);
  46. __setup_start = .;
  47. .init.setup : { *(.init.setup) }
  48. __setup_end = .;
  49. __initcall_start = .;
  50. .initcall.init : {
  51. *(.initcall1.init)
  52. *(.initcall2.init)
  53. *(.initcall3.init)
  54. *(.initcall4.init)
  55. *(.initcall5.init)
  56. *(.initcall6.init)
  57. *(.initcall7.init)
  58. }
  59. __initcall_end = .;
  60. __con_initcall_start = .;
  61. .con_initcall.init : { *(.con_initcall.init) }
  62. __con_initcall_end = .;
  63. SECURITY_INIT
  64. . = ALIGN(8192);
  65. __initramfs_start = .;
  66. .init.ramfs : { *(.init.ramfs) }
  67. __initramfs_end = .;
  68. . = ALIGN(8192);
  69. __per_cpu_start = .;
  70. .data.percpu : { *(.data.percpu) }
  71. __per_cpu_end = .;
  72. . = ALIGN(8192);
  73. __init_end = .;
  74. __bss_start = .;
  75. .sbss : { *(.sbss) *(.scommon) }
  76. .bss :
  77. {
  78. *(.dynbss)
  79. *(.bss)
  80. *(COMMON)
  81. }
  82. _end = . ;
  83. PROVIDE (end = .);
  84. /* Stabs debugging sections. */
  85. .stab 0 : { *(.stab) }
  86. .stabstr 0 : { *(.stabstr) }
  87. .stab.excl 0 : { *(.stab.excl) }
  88. .stab.exclstr 0 : { *(.stab.exclstr) }
  89. .stab.index 0 : { *(.stab.index) }
  90. .stab.indexstr 0 : { *(.stab.indexstr) }
  91. .comment 0 : { *(.comment) }
  92. .debug 0 : { *(.debug) }
  93. .debug_srcinfo 0 : { *(.debug_srcinfo) }
  94. .debug_aranges 0 : { *(.debug_aranges) }
  95. .debug_pubnames 0 : { *(.debug_pubnames) }
  96. .debug_sfnames 0 : { *(.debug_sfnames) }
  97. .line 0 : { *(.line) }
  98. /DISCARD/ : { *(.exit.text) *(.exit.data) *(.exitcall.exit) }
  99. }