summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/vdso
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2022-06-28 18:13:07 +0300
committerWill Deacon <will@kernel.org>2022-06-28 19:41:44 +0300
commit4274929c7ee6f442c3f89c5da64d112a9de4a6ba (patch)
tree80d9aaff391ba22a52da3a69e6920a111e85392d /arch/arm64/kernel/vdso
parent5c4fb60816ea55f66a046cc3662ca379aed52f7b (diff)
downloadlinux-4274929c7ee6f442c3f89c5da64d112a9de4a6ba.tar.xz
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/vdso')
-rw-r--r--arch/arm64/kernel/vdso/vdso.lds.S12
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/arm64/kernel/vdso/vdso.lds.S b/arch/arm64/kernel/vdso/vdso.lds.S
index 1cd85258c079..e69fb4aaaf3e 100644
--- a/arch/arm64/kernel/vdso/vdso.lds.S
+++ b/arch/arm64/kernel/vdso/vdso.lds.S
@@ -52,17 +52,15 @@ SECTIONS
.rela.dyn : ALIGN(8) { *(.rela .rela*) }
- .plt : {
+ .rodata : {
+ *(.rodata*)
+ *(.got)
+ *(.got.plt)
*(.plt)
*(.plt.*)
*(.iplt)
*(.igot .igot.plt)
- }
-
- .got : { *(.got) }
- .got.plt : { *(.got.plt) }
-
- .rodata : { *(.rodata*) } :text
+ } :text
_end = .;
PROVIDE(end = .);