Commit 4274929c authored by Joey Gouly's avatar Joey Gouly Committed by Will Deacon

arm64: vdso*: place got/plt sections in .rodata

The vDSO will not contain absolute relocations, so place these
sections in .rodata.
Signed-off-by: default avatarJoey 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.comSigned-off-by: default avatarWill Deacon <will@kernel.org>
parent 5c4fb608
...@@ -52,17 +52,15 @@ SECTIONS ...@@ -52,17 +52,15 @@ SECTIONS
.rela.dyn : ALIGN(8) { *(.rela .rela*) } .rela.dyn : ALIGN(8) { *(.rela .rela*) }
.plt : { .rodata : {
*(.rodata*)
*(.got)
*(.got.plt)
*(.plt) *(.plt)
*(.plt.*) *(.plt.*)
*(.iplt) *(.iplt)
*(.igot .igot.plt) *(.igot .igot.plt)
} } :text
.got : { *(.got) }
.got.plt : { *(.got.plt) }
.rodata : { *(.rodata*) } :text
_end = .; _end = .;
PROVIDE(end = .); PROVIDE(end = .);
......
...@@ -36,7 +36,15 @@ SECTIONS ...@@ -36,7 +36,15 @@ SECTIONS
.dynamic : { *(.dynamic) } :text :dynamic .dynamic : { *(.dynamic) } :text :dynamic
.rodata : { *(.rodata*) } :text .rodata : {
*(.rodata*)
*(.got)
*(.got.plt)
*(.plt)
*(.rel.iplt)
*(.iplt)
*(.igot.plt)
} :text
.text : { .text : {
*(.text*) *(.text*)
...@@ -46,18 +54,7 @@ SECTIONS ...@@ -46,18 +54,7 @@ SECTIONS
*(.v4_bx) *(.v4_bx)
} :text =0xe7f001f2 } :text =0xe7f001f2
.rel.dyn : { *(.rel.text) } .rel.dyn : { *(.rel*) }
.got : { *(.got) }
.rel.got : { *(.rel.got) }
.got.plt : { *(.got.plt) }
.rel.plt : { *(.rel.plt) }
.plt : {
*(.plt)
*(.rel.iplt)
*(.iplt)
*(.igot.plt)
}
ELF_DETAILS ELF_DETAILS
.ARM.exidx : { *(.ARM.exidx*) } .ARM.exidx : { *(.ARM.exidx*) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment