vmlinux.lds.S 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. LOCK_TEXT
  35. *(.fixup)
  36. *(.gnu.warning)
  37. }
  38. _etext = .;
  39. _sdata = .;
  40. RO_DATA_SECTION(PAGE_SIZE)
  41. RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
  42. _edata = .;
  43. EXCEPTION_TABLE(L1_CACHE_BYTES)
  44. NOTES
  45. BSS_SECTION(0, 0, 0)
  46. _end = .;
  47. STABS_DEBUG
  48. DWARF_DEBUG
  49. DISCARDS /* Exit code and data */
  50. }