aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2014-11-14 10:54:08 -0500
committerWill Deacon <will.deacon@arm.com>2014-11-25 08:46:36 -0500
commite039ee4ee3fcf174736f2cb0a2eed6cb908348a6 (patch)
tree65cb1ee1f7ad18726189954a4fd4d0f64420838a /arch/arm64/kernel/vmlinux.lds.S
parent930da09f5e50dd22fb0a8600388da8677d62d671 (diff)
arm64: add alternative runtime patching
With a blatant copy of some x86 bits we introduce the alternative runtime patching "framework" to arm64. This is quite basic for now and we only provide the functions we need at this time. This is connected to the newly introduced feature bits. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/vmlinux.lds.S')
-rw-r--r--arch/arm64/kernel/vmlinux.lds.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S
index 4596f46d0244..3236727be2b9 100644
--- a/arch/arm64/kernel/vmlinux.lds.S
+++ b/arch/arm64/kernel/vmlinux.lds.S
@@ -116,6 +116,17 @@ SECTIONS
116 . = ALIGN(PAGE_SIZE); 116 . = ALIGN(PAGE_SIZE);
117 __init_end = .; 117 __init_end = .;
118 118
119 . = ALIGN(4);
120 .altinstructions : {
121 __alt_instructions = .;
122 *(.altinstructions)
123 __alt_instructions_end = .;
124 }
125 .altinstr_replacement : {
126 *(.altinstr_replacement)
127 }
128
129 . = ALIGN(PAGE_SIZE);
119 _data = .; 130 _data = .;
120 _sdata = .; 131 _sdata = .;
121 RW_DATA_SECTION(64, PAGE_SIZE, THREAD_SIZE) 132 RW_DATA_SECTION(64, PAGE_SIZE, THREAD_SIZE)