vmlinux.lds.S (bba9525520b6028ecbe7486e13216e9ede8636be) vmlinux.lds.S (046835b4aa22b9ab6aa0bb274e3b71047c4b887d)
1/* SPDX-License-Identifier: GPL-2.0 */
2/* ld script to make ARM Linux kernel
3 * taken from the i386 version by Russell King
4 * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>
5 */
6
7#ifdef CONFIG_XIP_KERNEL
8#include "vmlinux-xip.lds.S"
9#else
10
11#include <asm-generic/vmlinux.lds.h>
12#include <asm/cache.h>
13#include <asm/thread_info.h>
14#include <asm/memory.h>
1/* SPDX-License-Identifier: GPL-2.0 */
2/* ld script to make ARM Linux kernel
3 * taken from the i386 version by Russell King
4 * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>
5 */
6
7#ifdef CONFIG_XIP_KERNEL
8#include "vmlinux-xip.lds.S"
9#else
10
11#include <asm-generic/vmlinux.lds.h>
12#include <asm/cache.h>
13#include <asm/thread_info.h>
14#include <asm/memory.h>
15#include <asm/mpu.h>
15#include <asm/page.h>
16#include <asm/pgtable.h>
17
18#include "vmlinux.lds.h"
19
20OUTPUT_ARCH(arm)
21ENTRY(stext)
22

--- 26 unchanged lines hidden (view full) ---

49 _text = .;
50 HEAD_TEXT
51 }
52
53#ifdef CONFIG_STRICT_KERNEL_RWX
54 . = ALIGN(1<<SECTION_SHIFT);
55#endif
56
16#include <asm/page.h>
17#include <asm/pgtable.h>
18
19#include "vmlinux.lds.h"
20
21OUTPUT_ARCH(arm)
22ENTRY(stext)
23

--- 26 unchanged lines hidden (view full) ---

50 _text = .;
51 HEAD_TEXT
52 }
53
54#ifdef CONFIG_STRICT_KERNEL_RWX
55 . = ALIGN(1<<SECTION_SHIFT);
56#endif
57
58#ifdef CONFIG_ARM_MPU
59 . = ALIGN(PMSAv8_MINALIGN);
60#endif
57 .text : { /* Real text segment */
58 _stext = .; /* Text and read-only data */
59 ARM_TEXT
60 }
61
62#ifdef CONFIG_DEBUG_ALIGN_RODATA
63 . = ALIGN(1<<SECTION_SHIFT);
64#endif

--- 73 unchanged lines hidden (view full) ---

138#endif
139 __init_end = .;
140
141 _sdata = .;
142 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
143 _edata = .;
144
145 BSS_SECTION(0, 0, 0)
61 .text : { /* Real text segment */
62 _stext = .; /* Text and read-only data */
63 ARM_TEXT
64 }
65
66#ifdef CONFIG_DEBUG_ALIGN_RODATA
67 . = ALIGN(1<<SECTION_SHIFT);
68#endif

--- 73 unchanged lines hidden (view full) ---

142#endif
143 __init_end = .;
144
145 _sdata = .;
146 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
147 _edata = .;
148
149 BSS_SECTION(0, 0, 0)
150#ifdef CONFIG_ARM_MPU
151 . = ALIGN(PMSAv8_MINALIGN);
152#endif
146 _end = .;
147
148 STABS_DEBUG
149}
150
151#ifdef CONFIG_STRICT_KERNEL_RWX
152/*
153 * Without CONFIG_DEBUG_ALIGN_RODATA, __start_rodata_section_aligned will

--- 23 unchanged lines hidden ---
153 _end = .;
154
155 STABS_DEBUG
156}
157
158#ifdef CONFIG_STRICT_KERNEL_RWX
159/*
160 * Without CONFIG_DEBUG_ALIGN_RODATA, __start_rodata_section_aligned will

--- 23 unchanged lines hidden ---