vmlinux.lds.S 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * Linker script for Hexagon kernel
  3. *
  4. * Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 and
  8. * only version 2 as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  18. * 02110-1301, USA.
  19. */
  20. #include <asm-generic/vmlinux.lds.h>
  21. #include <asm/asm-offsets.h> /* Most of the kernel defines are here */
  22. #include <asm/mem-layout.h> /* except for page_offset */
  23. #include <asm/cache.h> /* and now we're pulling cache line size */
  24. OUTPUT_ARCH(hexagon)
  25. ENTRY(stext)
  26. jiffies = jiffies_64;
  27. /*
  28. See asm-generic/vmlinux.lds.h for expansion of some of these macros.
  29. See asm-generic/sections.h for seemingly required labels.
  30. */
  31. #define PAGE_SIZE _PAGE_SIZE
  32. SECTIONS
  33. {
  34. . = PAGE_OFFSET;
  35. __init_begin = .;
  36. HEAD_TEXT_SECTION
  37. INIT_TEXT_SECTION(PAGE_SIZE)
  38. PERCPU_SECTION(L1_CACHE_BYTES)
  39. __init_end = .;
  40. . = ALIGN(_PAGE_SIZE);
  41. _stext = .;
  42. .text : AT(ADDR(.text)) {
  43. _text = .;
  44. TEXT_TEXT
  45. SCHED_TEXT
  46. CPUIDLE_TEXT
  47. LOCK_TEXT
  48. KPROBES_TEXT
  49. *(.fixup)
  50. }
  51. _etext = .;
  52. INIT_DATA_SECTION(PAGE_SIZE)
  53. _sdata = .;
  54. RW_DATA_SECTION(32,PAGE_SIZE,_THREAD_SIZE)
  55. RO_DATA_SECTION(PAGE_SIZE)
  56. _edata = .;
  57. EXCEPTION_TABLE(16)
  58. NOTES
  59. BSS_SECTION(_PAGE_SIZE, _PAGE_SIZE, _PAGE_SIZE)
  60. _end = .;
  61. /DISCARD/ : {
  62. EXIT_TEXT
  63. EXIT_DATA
  64. EXIT_CALL
  65. }
  66. STABS_DEBUG
  67. DWARF_DEBUG
  68. }