]>
Commit | Line | Data |
---|---|---|
08dbd0f8 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
e95bf452 RK |
2 | /* |
3 | * Linker script for Hexagon kernel | |
4 | * | |
f6b708c1 | 5 | * Copyright (c) 2010-2014, The Linux Foundation. All rights reserved. |
e95bf452 RK |
6 | */ |
7 | ||
e95bf452 RK |
8 | #include <asm-generic/vmlinux.lds.h> |
9 | #include <asm/asm-offsets.h> /* Most of the kernel defines are here */ | |
10 | #include <asm/mem-layout.h> /* except for page_offset */ | |
11 | #include <asm/cache.h> /* and now we're pulling cache line size */ | |
0b04ea68 DH |
12 | #include <asm/thread_info.h> /* and we need THREAD_SIZE too */ |
13 | ||
e95bf452 RK |
14 | OUTPUT_ARCH(hexagon) |
15 | ENTRY(stext) | |
16 | ||
17 | jiffies = jiffies_64; | |
18 | ||
19 | /* | |
20 | See asm-generic/vmlinux.lds.h for expansion of some of these macros. | |
21 | See asm-generic/sections.h for seemingly required labels. | |
22 | */ | |
23 | ||
24 | #define PAGE_SIZE _PAGE_SIZE | |
25 | ||
e95bf452 RK |
26 | SECTIONS |
27 | { | |
8f5a0b9d | 28 | . = PAGE_OFFSET; |
e95bf452 RK |
29 | |
30 | __init_begin = .; | |
31 | HEAD_TEXT_SECTION | |
32 | INIT_TEXT_SECTION(PAGE_SIZE) | |
33 | PERCPU_SECTION(L1_CACHE_BYTES) | |
34 | __init_end = .; | |
35 | ||
36 | . = ALIGN(_PAGE_SIZE); | |
37 | _stext = .; | |
8f5a0b9d | 38 | .text : AT(ADDR(.text)) { |
e95bf452 RK |
39 | _text = .; |
40 | TEXT_TEXT | |
41 | SCHED_TEXT | |
6727ad9e | 42 | CPUIDLE_TEXT |
e95bf452 RK |
43 | LOCK_TEXT |
44 | KPROBES_TEXT | |
45 | *(.fixup) | |
46 | } | |
47 | _etext = .; | |
48 | ||
49 | INIT_DATA_SECTION(PAGE_SIZE) | |
50 | ||
51 | _sdata = .; | |
f6b708c1 | 52 | RW_DATA_SECTION(32,PAGE_SIZE,_THREAD_SIZE) |
e95bf452 RK |
53 | RO_DATA_SECTION(PAGE_SIZE) |
54 | _edata = .; | |
55 | ||
56 | EXCEPTION_TABLE(16) | |
57 | NOTES | |
58 | ||
59 | BSS_SECTION(_PAGE_SIZE, _PAGE_SIZE, _PAGE_SIZE) | |
60 | ||
61 | _end = .; | |
62 | ||
63 | /DISCARD/ : { | |
64 | EXIT_TEXT | |
65 | EXIT_DATA | |
66 | EXIT_CALL | |
67 | } | |
68 | ||
69 | STABS_DEBUG | |
70 | DWARF_DEBUG | |
71 | ||
72 | } |