vmlinux.lds.S 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright (C) 2009 Thomas Chou <thomas@wytron.com.tw>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. *
  17. */
  18. #include <asm/page.h>
  19. #include <asm-generic/vmlinux.lds.h>
  20. #include <asm/cache.h>
  21. #include <asm/thread_info.h>
  22. OUTPUT_FORMAT("elf32-littlenios2", "elf32-littlenios2", "elf32-littlenios2")
  23. OUTPUT_ARCH(nios)
  24. ENTRY(_start) /* Defined in head.S */
  25. jiffies = jiffies_64;
  26. SECTIONS
  27. {
  28. . = CONFIG_NIOS2_MEM_BASE | CONFIG_NIOS2_KERNEL_REGION_BASE;
  29. _text = .;
  30. _stext = .;
  31. HEAD_TEXT_SECTION
  32. .text : {
  33. TEXT_TEXT
  34. SCHED_TEXT
  35. CPUIDLE_TEXT
  36. LOCK_TEXT
  37. IRQENTRY_TEXT
  38. SOFTIRQENTRY_TEXT
  39. KPROBES_TEXT
  40. } =0
  41. _etext = .;
  42. .got : {
  43. *(.got.plt)
  44. *(.igot.plt)
  45. *(.got)
  46. *(.igot)
  47. }
  48. EXCEPTION_TABLE(L1_CACHE_BYTES)
  49. . = ALIGN(PAGE_SIZE);
  50. __init_begin = .;
  51. INIT_TEXT_SECTION(PAGE_SIZE)
  52. INIT_DATA_SECTION(PAGE_SIZE)
  53. PERCPU_SECTION(L1_CACHE_BYTES)
  54. __init_end = .;
  55. _sdata = .;
  56. RO_DATA_SECTION(PAGE_SIZE)
  57. RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
  58. _edata = .;
  59. BSS_SECTION(0, 0, 0)
  60. _end = .;
  61. STABS_DEBUG
  62. DWARF_DEBUG
  63. NOTES
  64. DISCARDS
  65. }