vmlinux.lds.S 2.1 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. RODATA
  48. EXCEPTION_TABLE(16)
  49. RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
  50. /* We want the small data sections together, so single-instruction offsets
  51. can access them all, and initialized data all before uninitialized, so
  52. we can shorten the on-disk segment size. */
  53. . = ALIGN(8);
  54. .sdata : {
  55. *(.sdata)
  56. }
  57. _edata = .; /* End of data section */
  58. /* will be freed after init */
  59. . = ALIGN(PAGE_SIZE); /* Init code and data */
  60. __init_begin = .;
  61. INIT_TEXT_SECTION(PAGE_SIZE)
  62. INIT_DATA_SECTION(16)
  63. /* .exit.text is discarded at runtime, not link time, to deal with
  64. * references from .rodata
  65. */
  66. .exit.text : {
  67. EXIT_TEXT
  68. }
  69. .exit.data : {
  70. EXIT_DATA
  71. }
  72. . = ALIGN(PAGE_SIZE);
  73. __init_end = .;
  74. /* freed after init ends here */
  75. BSS_SECTION(0, 0, 0)
  76. _end = .;
  77. }