vmlinux.lds.S 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. LOCK_TEXT
  23. IRQENTRY_TEXT
  24. SOFTIRQENTRY_TEXT
  25. KPROBES_TEXT
  26. } =0
  27. _etext = .;
  28. .got : {
  29. *(.got.plt)
  30. *(.igot.plt)
  31. *(.got)
  32. *(.igot)
  33. }
  34. EXCEPTION_TABLE(L1_CACHE_BYTES)
  35. . = ALIGN(PAGE_SIZE);
  36. __init_begin = .;
  37. INIT_TEXT_SECTION(PAGE_SIZE)
  38. INIT_DATA_SECTION(PAGE_SIZE)
  39. PERCPU_SECTION(L1_CACHE_BYTES)
  40. __init_end = .;
  41. _sdata = .;
  42. RO_DATA(PAGE_SIZE)
  43. RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
  44. _edata = .;
  45. BSS_SECTION(0, 0, 0)
  46. _end = .;
  47. STABS_DEBUG
  48. DWARF_DEBUG
  49. ELF_DETAILS
  50. DISCARDS
  51. }