vmlinux.lds.S 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /* ld script to make M32R Linux kernel
  2. */
  3. #include <linux/config.h>
  4. #include <asm-generic/vmlinux.lds.h>
  5. #include <asm/addrspace.h>
  6. #include <asm/page.h>
  7. OUTPUT_ARCH(m32r)
  8. ENTRY(startup_32)
  9. #if defined(__LITTLE_ENDIAN__)
  10. jiffies = jiffies_64;
  11. #else
  12. jiffies = jiffies_64 + 4;
  13. #endif
  14. SECTIONS
  15. {
  16. . = CONFIG_MEMORY_START + __PAGE_OFFSET;
  17. eit_vector = .;
  18. . = . + 0x1000;
  19. .empty_zero_page : { *(.empty_zero_page) } = 0
  20. /* read-only */
  21. _text = .; /* Text and read-only data */
  22. .boot : { *(.boot) } = 0
  23. .text : {
  24. *(.text)
  25. SCHED_TEXT
  26. LOCK_TEXT
  27. *(.fixup)
  28. *(.gnu.warning)
  29. } = 0x9090
  30. #ifdef CONFIG_SMP
  31. . = ALIGN(65536);
  32. .eit_vector4 : { *(.eit_vector4) }
  33. #endif
  34. _etext = .; /* End of text section */
  35. . = ALIGN(16); /* Exception table */
  36. __start___ex_table = .;
  37. __ex_table : { *(__ex_table) }
  38. __stop___ex_table = .;
  39. RODATA
  40. /* writeable */
  41. .data : { /* Data */
  42. *(.spu)
  43. *(.spi)
  44. *(.data)
  45. CONSTRUCTORS
  46. }
  47. . = ALIGN(4096);
  48. __nosave_begin = .;
  49. .data_nosave : { *(.data.nosave) }
  50. . = ALIGN(4096);
  51. __nosave_end = .;
  52. . = ALIGN(4096);
  53. .data.page_aligned : { *(.data.idt) }
  54. . = ALIGN(32);
  55. .data.cacheline_aligned : { *(.data.cacheline_aligned) }
  56. _edata = .; /* End of data section */
  57. . = ALIGN(8192); /* init_task */
  58. .data.init_task : { *(.data.init_task) }
  59. /* will be freed after init */
  60. . = ALIGN(4096); /* Init code and data */
  61. __init_begin = .;
  62. .init.text : {
  63. _sinittext = .;
  64. *(.init.text)
  65. _einittext = .;
  66. }
  67. .init.data : { *(.init.data) }
  68. . = ALIGN(16);
  69. __setup_start = .;
  70. .init.setup : { *(.init.setup) }
  71. __setup_end = .;
  72. __initcall_start = .;
  73. .initcall.init : {
  74. *(.initcall1.init)
  75. *(.initcall2.init)
  76. *(.initcall3.init)
  77. *(.initcall4.init)
  78. *(.initcall5.init)
  79. *(.initcall6.init)
  80. *(.initcall7.init)
  81. }
  82. __initcall_end = .;
  83. __con_initcall_start = .;
  84. .con_initcall.init : { *(.con_initcall.init) }
  85. __con_initcall_end = .;
  86. SECURITY_INIT
  87. . = ALIGN(4);
  88. __alt_instructions = .;
  89. .altinstructions : { *(.altinstructions) }
  90. __alt_instructions_end = .;
  91. .altinstr_replacement : { *(.altinstr_replacement) }
  92. /* .exit.text is discard at runtime, not link time, to deal with references
  93. from .altinstructions and .eh_frame */
  94. .exit.text : { *(.exit.text) }
  95. .exit.data : { *(.exit.data) }
  96. . = ALIGN(4096);
  97. __initramfs_start = .;
  98. .init.ramfs : { *(.init.ramfs) }
  99. __initramfs_end = .;
  100. . = ALIGN(32);
  101. __per_cpu_start = .;
  102. .data.percpu : { *(.data.percpu) }
  103. __per_cpu_end = .;
  104. . = ALIGN(4096);
  105. __init_end = .;
  106. /* freed after init ends here */
  107. __bss_start = .; /* BSS */
  108. .bss : { *(.bss) }
  109. . = ALIGN(4);
  110. __bss_stop = .;
  111. _end = . ;
  112. /* Sections to be discarded */
  113. /DISCARD/ : {
  114. *(.exit.text)
  115. *(.exit.data)
  116. *(.exitcall.exit)
  117. }
  118. /* Stabs debugging sections. */
  119. .stab 0 : { *(.stab) }
  120. .stabstr 0 : { *(.stabstr) }
  121. .stab.excl 0 : { *(.stab.excl) }
  122. .stab.exclstr 0 : { *(.stab.exclstr) }
  123. .stab.index 0 : { *(.stab.index) }
  124. .stab.indexstr 0 : { *(.stab.indexstr) }
  125. .comment 0 : { *(.comment) }
  126. }