From: Roland McGrath This adds a const to the definitions vvar.c makes, so that the vdso_* variables go into .rodata instead of .data. This is essentially a cosmetic change, just giving the section headers in the vDSO file more pleasing flags. These variables are read-only from the perspective of the vDSO itself and user mode, even though the contents of the DSO image were adjusted at boot. Signed-off-by: Roland McGrath Cc: Andi Kleen Signed-off-by: Andrew Morton --- diff -puN arch/x86_64/vdso/vvar.c~x86_64-vdso-put-vars-in-rodata arch/x86_64/vdso/vvar.c --- a/arch/x86_64/vdso/vvar.c~x86_64-vdso-put-vars-in-rodata +++ a/arch/x86_64/vdso/vvar.c @@ -8,5 +8,5 @@ #include #include -#define VEXTERN(x) typeof (__ ## x) *vdso_ ## x = (void *)VMAGIC; +#define VEXTERN(x) typeof (__ ## x) *const vdso_ ## x = (void *)VMAGIC; #include "vextern.h" _