vmlinux.lds.S 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. #include <asm/cache.h>
  17. OUTPUT_ARCH(unicore32)
  18. ENTRY(stext)
  19. jiffies = jiffies_64;
  20. SECTIONS
  21. {
  22. . = PAGE_OFFSET + KERNEL_IMAGE_START;
  23. _text = .;
  24. __init_begin = .;
  25. HEAD_TEXT_SECTION
  26. INIT_TEXT_SECTION(PAGE_SIZE)
  27. INIT_DATA_SECTION(16)
  28. PERCPU_SECTION(L1_CACHE_BYTES)
  29. __init_end = .;
  30. _stext = .;
  31. .text : { /* Real text segment */
  32. TEXT_TEXT
  33. SCHED_TEXT
  34. CPUIDLE_TEXT
  35. LOCK_TEXT
  36. *(.fixup)
  37. *(.gnu.warning)
  38. }
  39. _etext = .;
  40. _sdata = .;
  41. RO_DATA_SECTION(PAGE_SIZE)
  42. RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
  43. _edata = .;
  44. EXCEPTION_TABLE(L1_CACHE_BYTES)
  45. NOTES
  46. BSS_SECTION(0, 0, 0)
  47. _end = .;
  48. STABS_DEBUG
  49. DWARF_DEBUG
  50. DISCARDS /* Exit code and data */
  51. }