vmlinux.lds.S 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /*
  2. * arch/score/kernel/vmlinux.lds.S
  3. *
  4. * Score Processor version.
  5. *
  6. * Copyright (C) 2009 Sunplus Core Technology Co., Ltd.
  7. * Chen Liqin <liqin.chen@sunplusct.com>
  8. * Lennox Wu <lennox.wu@sunplusct.com>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, see the file COPYING, or write
  22. * to the Free Software Foundation, Inc.,
  23. * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  24. */
  25. #include <asm-generic/vmlinux.lds.h>
  26. OUTPUT_ARCH(score)
  27. ENTRY(_stext)
  28. jiffies = jiffies_64;
  29. SECTIONS
  30. {
  31. . = CONFIG_MEMORY_START + 0x2000;
  32. /* read-only */
  33. .text : {
  34. _text = .; /* Text and read-only data */
  35. TEXT_TEXT
  36. SCHED_TEXT
  37. LOCK_TEXT
  38. KPROBES_TEXT
  39. *(.text.*)
  40. *(.fixup)
  41. . = ALIGN (4) ;
  42. _etext = .; /* End of text section */
  43. }
  44. . = ALIGN(16);
  45. RODATA
  46. /* Exception table */
  47. . = ALIGN(16);
  48. __ex_table : {
  49. __start___ex_table = .;
  50. *(__ex_table)
  51. __stop___ex_table = .;
  52. }
  53. /* writeable */
  54. .data ALIGN (4096): {
  55. *(.data.init_task)
  56. DATA_DATA
  57. CONSTRUCTORS
  58. }
  59. /* We want the small data sections together, so single-instruction offsets
  60. can access them all, and initialized data all before uninitialized, so
  61. we can shorten the on-disk segment size. */
  62. . = ALIGN(8);
  63. .sdata : {
  64. *(.sdata)
  65. }
  66. . = ALIGN(32);
  67. .data.cacheline_aligned : {
  68. *(.data.cacheline_aligned)
  69. }
  70. _edata = .; /* End of data section */
  71. /* will be freed after init */
  72. . = ALIGN(4096); /* Init code and data */
  73. __init_begin = .;
  74. . = ALIGN(4096);
  75. .init.text : {
  76. _sinittext = .;
  77. INIT_TEXT
  78. _einittext = .;
  79. }
  80. .init.data : {
  81. INIT_DATA
  82. }
  83. . = ALIGN(16);
  84. .init.setup : {
  85. __setup_start = .;
  86. *(.init.setup)
  87. __setup_end = .;
  88. }
  89. .initcall.init : {
  90. __initcall_start = .;
  91. INITCALLS
  92. __initcall_end = .;
  93. }
  94. .con_initcall.init : {
  95. __con_initcall_start = .;
  96. *(.con_initcall.init)
  97. __con_initcall_end = .;
  98. }
  99. SECURITY_INIT
  100. /* .exit.text is discarded at runtime, not link time, to deal with
  101. * references from .rodata
  102. */
  103. .exit.text : {
  104. EXIT_TEXT
  105. }
  106. .exit.data : {
  107. EXIT_DATA
  108. }
  109. #if defined(CONFIG_BLK_DEV_INITRD)
  110. .init.ramfs ALIGN(4096): {
  111. __initramfs_start = .;
  112. *(.init.ramfs)
  113. __initramfs_end = .;
  114. . = ALIGN(4);
  115. LONG(0);
  116. }
  117. #endif
  118. . = ALIGN(4096);
  119. __init_end = .;
  120. /* freed after init ends here */
  121. __bss_start = .; /* BSS */
  122. .sbss : {
  123. *(.sbss)
  124. *(.scommon)
  125. }
  126. .bss : {
  127. *(.bss)
  128. *(COMMON)
  129. }
  130. __bss_stop = .;
  131. _end = .;
  132. }