vmlinux.lds.S 2.2 KB

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