mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

VDSO text is fixed-up during init so it can't be const, but it can be read-only after init. Do the same as x86 in commit018ef8dcf3
("x86/vdso: Mark the vDSO code read-only after init") and arm in commit11bf9b8658
("ARM/vdso: Mark the vDSO code read-only after init"), move it into ro_after_init section. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/e9892d288b646cbdfeef0b2b73edbaf6d3c6cabe.1734174500.git.christophe.leroy@csgroup.eu
14 lines
288 B
ArmAsm
14 lines
288 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#include <linux/linkage.h>
|
|
#include <asm/page.h>
|
|
|
|
.section ".data..ro_after_init", "aw"
|
|
|
|
.globl vdso32_start, vdso32_end
|
|
.balign PAGE_SIZE
|
|
vdso32_start:
|
|
.incbin "arch/powerpc/kernel/vdso/vdso32.so.dbg"
|
|
.balign PAGE_SIZE
|
|
vdso32_end:
|
|
|
|
.previous
|