vmlinux.lds.S 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * linux/arch/unicore32/kernel/vmlinux.lds.S
  3. *
  4. * Code specific to PKUnity SoC and UniCore ISA
  5. *
  6. * Copyright (C) 2001-2010 GUAN Xue-tao
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #include <asm-generic/vmlinux.lds.h>
  13. #include <asm/thread_info.h>
  14. #include <asm/memory.h>
  15. #include <asm/page.h>
  16. OUTPUT_ARCH(unicore32)
  17. ENTRY(stext)
  18. jiffies = jiffies_64;
  19. SECTIONS
  20. {
  21. . = PAGE_OFFSET + KERNEL_IMAGE_START;
  22. _text = .;
  23. __init_begin = .;
  24. HEAD_TEXT_SECTION
  25. INIT_TEXT_SECTION(PAGE_SIZE)
  26. INIT_DATA_SECTION(16)
  27. PERCPU(PAGE_SIZE)
  28. __init_end = .;
  29. _stext = .;
  30. .text : { /* Real text segment */
  31. TEXT_TEXT
  32. SCHED_TEXT
  33. LOCK_TEXT
  34. *(.fixup)
  35. *(.gnu.warning)
  36. }
  37. _etext = .;
  38. _sdata = .;
  39. RO_DATA_SECTION(PAGE_SIZE)
  40. RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
  41. _edata = .;
  42. EXCEPTION_TABLE(32)
  43. NOTES
  44. BSS_SECTION(0, 0, 0)
  45. _end = .;
  46. STABS_DEBUG
  47. DWARF_DEBUG
  48. DISCARDS /* Exit code and data */
  49. }