vmlinux.lds.S 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. #if defined(__LITTLE_ENDIAN__)
  8. jiffies = jiffies_64;
  9. #else
  10. jiffies = jiffies_64 + 4;
  11. #endif
  12. kernel_entry = boot - 0x80000000;
  13. ENTRY(kernel_entry)
  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. HEAD_TEXT
  25. TEXT_TEXT
  26. SCHED_TEXT
  27. LOCK_TEXT
  28. *(.fixup)
  29. *(.gnu.warning)
  30. } = 0x9090
  31. #ifdef CONFIG_SMP
  32. . = ALIGN(65536);
  33. .eit_vector4 : { *(.eit_vector4) }
  34. #endif
  35. _etext = .; /* End of text section */
  36. . = ALIGN(16); /* Exception table */
  37. __start___ex_table = .;
  38. __ex_table : { *(__ex_table) }
  39. __stop___ex_table = .;
  40. RODATA
  41. /* writeable */
  42. .data : { /* Data */
  43. *(.spu)
  44. *(.spi)
  45. DATA_DATA
  46. CONSTRUCTORS
  47. }
  48. . = ALIGN(4096);
  49. __nosave_begin = .;
  50. .data_nosave : { *(.data.nosave) }
  51. . = ALIGN(4096);
  52. __nosave_end = .;
  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. INITCALLS
  74. }
  75. __initcall_end = .;
  76. __con_initcall_start = .;
  77. .con_initcall.init : { *(.con_initcall.init) }
  78. __con_initcall_end = .;
  79. SECURITY_INIT
  80. . = ALIGN(4);
  81. __alt_instructions = .;
  82. .altinstructions : { *(.altinstructions) }
  83. __alt_instructions_end = .;
  84. .altinstr_replacement : { *(.altinstr_replacement) }
  85. /* .exit.text is discard at runtime, not link time, to deal with references
  86. from .altinstructions and .eh_frame */
  87. .exit.text : { EXIT_TEXT }
  88. .exit.data : { EXIT_DATA }
  89. #ifdef CONFIG_BLK_DEV_INITRD
  90. . = ALIGN(4096);
  91. __initramfs_start = .;
  92. .init.ramfs : { *(.init.ramfs) }
  93. __initramfs_end = .;
  94. #endif
  95. PERCPU(4096)
  96. . = ALIGN(4096);
  97. __init_end = .;
  98. /* freed after init ends here */
  99. __bss_start = .; /* BSS */
  100. .bss : { *(.bss) }
  101. . = ALIGN(4);
  102. __bss_stop = .;
  103. _end = . ;
  104. /* Sections to be discarded */
  105. /DISCARD/ : {
  106. EXIT_TEXT
  107. EXIT_DATA
  108. *(.exitcall.exit)
  109. }
  110. /* Stabs debugging sections. */
  111. .stab 0 : { *(.stab) }
  112. .stabstr 0 : { *(.stabstr) }
  113. .stab.excl 0 : { *(.stab.excl) }
  114. .stab.exclstr 0 : { *(.stab.exclstr) }
  115. .stab.index 0 : { *(.stab.index) }
  116. .stab.indexstr 0 : { *(.stab.indexstr) }
  117. .comment 0 : { *(.comment) }
  118. }