vmlinux.lds.S 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. #include <asm/thread_info.h>
  27. #include <asm/page.h>
  28. OUTPUT_ARCH(score)
  29. ENTRY(_stext)
  30. jiffies = jiffies_64;
  31. SECTIONS
  32. {
  33. . = CONFIG_MEMORY_START + 0x2000;
  34. /* read-only */
  35. .text : {
  36. _text = .; /* Text and read-only data */
  37. TEXT_TEXT
  38. SCHED_TEXT
  39. LOCK_TEXT
  40. KPROBES_TEXT
  41. *(.text.*)
  42. *(.fixup)
  43. . = ALIGN (4) ;
  44. _etext = .; /* End of text section */
  45. }
  46. . = ALIGN(16);
  47. _sdata = .; /* Start of data section */
  48. RODATA
  49. EXCEPTION_TABLE(16)
  50. RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
  51. /* We want the small data sections together, so single-instruction offsets
  52. can access them all, and initialized data all before uninitialized, so
  53. we can shorten the on-disk segment size. */
  54. . = ALIGN(8);
  55. .sdata : {
  56. *(.sdata)
  57. }
  58. _edata = .; /* End of data section */
  59. /* will be freed after init */
  60. . = ALIGN(PAGE_SIZE); /* Init code and data */
  61. __init_begin = .;
  62. INIT_TEXT_SECTION(PAGE_SIZE)
  63. INIT_DATA_SECTION(16)
  64. /* .exit.text is discarded at runtime, not link time, to deal with
  65. * references from .rodata
  66. */
  67. .exit.text : {
  68. EXIT_TEXT
  69. }
  70. .exit.data : {
  71. EXIT_DATA
  72. }
  73. . = ALIGN(PAGE_SIZE);
  74. __init_end = .;
  75. /* freed after init ends here */
  76. BSS_SECTION(0, 0, 0)
  77. _end = .;
  78. }