summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/vdso32/vdso.lds.S
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2022-06-28 16:13:07 +0100
committerWill Deacon <will@kernel.org>2022-06-28 17:41:44 +0100
commit4274929c7ee6f442c3f89c5da64d112a9de4a6ba (patch)
tree80d9aaff391ba22a52da3a69e6920a111e85392d /arch/arm64/kernel/vdso32/vdso.lds.S
parent5c4fb60816ea55f66a046cc3662ca379aed52f7b (diff)
downloadlwn-4274929c7ee6f442c3f89c5da64d112a9de4a6ba.tar.gz
lwn-4274929c7ee6f442c3f89c5da64d112a9de4a6ba.zip
arm64: vdso*: place got/plt sections in .rodata
The vDSO will not contain absolute relocations, so place these sections in .rodata. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Link: https://lore.kernel.org/linux-arm-kernel/00abb0c5-6360-0004-353f-e7a88b3bd22c@arm.com/ Cc: Will Deacon <will@kernel.org> Cc: Vincenzo Frascino <vincenzo.frascino@arm.com> Link: https://lore.kernel.org/r/20220628151307.35561-3-joey.gouly@arm.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/vdso32/vdso.lds.S')
-rw-r--r--arch/arm64/kernel/vdso32/vdso.lds.S23
1 files changed, 10 insertions, 13 deletions
diff --git a/arch/arm64/kernel/vdso32/vdso.lds.S b/arch/arm64/kernel/vdso32/vdso.lds.S
index e2f8ced571d6..6e67a6524d58 100644
--- a/arch/arm64/kernel/vdso32/vdso.lds.S
+++ b/arch/arm64/kernel/vdso32/vdso.lds.S
@@ -36,7 +36,15 @@ SECTIONS
.dynamic : { *(.dynamic) } :text :dynamic
- .rodata : { *(.rodata*) } :text
+ .rodata : {
+ *(.rodata*)
+ *(.got)
+ *(.got.plt)
+ *(.plt)
+ *(.rel.iplt)
+ *(.iplt)
+ *(.igot.plt)
+ } :text
.text : {
*(.text*)
@@ -46,18 +54,7 @@ SECTIONS
*(.v4_bx)
} :text =0xe7f001f2
- .rel.dyn : { *(.rel.text) }
-
- .got : { *(.got) }
- .rel.got : { *(.rel.got) }
- .got.plt : { *(.got.plt) }
- .rel.plt : { *(.rel.plt) }
- .plt : {
- *(.plt)
- *(.rel.iplt)
- *(.iplt)
- *(.igot.plt)
- }
+ .rel.dyn : { *(.rel*) }
ELF_DETAILS
.ARM.exidx : { *(.ARM.exidx*) }