vmlinux.lds.S 3.0 KB

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