vmlinux.lds.S 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) 2009 Thomas Chou <thomas@wytron.com.tw>
  4. */
  5. #include <asm/page.h>
  6. #include <asm-generic/vmlinux.lds.h>
  7. #include <asm/cache.h>
  8. #include <asm/thread_info.h>
  9. OUTPUT_FORMAT("elf32-littlenios2", "elf32-littlenios2", "elf32-littlenios2")
  10. OUTPUT_ARCH(nios)
  11. ENTRY(_start) /* Defined in head.S */
  12. jiffies = jiffies_64;
  13. SECTIONS
  14. {
  15. . = CONFIG_NIOS2_MEM_BASE | CONFIG_NIOS2_KERNEL_REGION_BASE;
  16. _text = .;
  17. _stext = .;
  18. HEAD_TEXT_SECTION
  19. .text : {
  20. TEXT_TEXT
  21. SCHED_TEXT
  22. CPUIDLE_TEXT
  23. LOCK_TEXT
  24. IRQENTRY_TEXT
  25. SOFTIRQENTRY_TEXT
  26. KPROBES_TEXT
  27. } =0
  28. _etext = .;
  29. .got : {
  30. *(.got.plt)
  31. *(.igot.plt)
  32. *(.got)
  33. *(.igot)
  34. }
  35. EXCEPTION_TABLE(L1_CACHE_BYTES)
  36. . = ALIGN(PAGE_SIZE);
  37. __init_begin = .;
  38. INIT_TEXT_SECTION(PAGE_SIZE)
  39. INIT_DATA_SECTION(PAGE_SIZE)
  40. PERCPU_SECTION(L1_CACHE_BYTES)
  41. __init_end = .;
  42. _sdata = .;
  43. RO_DATA(PAGE_SIZE)
  44. RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
  45. _edata = .;
  46. BSS_SECTION(0, 0, 0)
  47. _end = .;
  48. STABS_DEBUG
  49. DWARF_DEBUG
  50. ELF_DETAILS
  51. DISCARDS
  52. }