vmlinux.lds.S 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. LOCK_TEXT
  36. IRQENTRY_TEXT
  37. KPROBES_TEXT
  38. } =0
  39. _etext = .;
  40. .got : {
  41. *(.got.plt)
  42. *(.igot.plt)
  43. *(.got)
  44. *(.igot)
  45. }
  46. EXCEPTION_TABLE(L1_CACHE_BYTES)
  47. . = ALIGN(PAGE_SIZE);
  48. __init_begin = .;
  49. INIT_TEXT_SECTION(PAGE_SIZE)
  50. INIT_DATA_SECTION(PAGE_SIZE)
  51. PERCPU_SECTION(L1_CACHE_BYTES)
  52. __init_end = .;
  53. _sdata = .;
  54. RO_DATA_SECTION(PAGE_SIZE)
  55. RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
  56. _edata = .;
  57. BSS_SECTION(0, 0, 0)
  58. _end = .;
  59. STABS_DEBUG
  60. DWARF_DEBUG
  61. NOTES
  62. DISCARDS
  63. }