diff options
author | Roland McGrath <roland@redhat.com> | 2007-10-17 12:04:40 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@inhelltoy.tec.linutronix.de> | 2007-10-17 14:16:43 -0400 |
commit | 06f99ac87ef3f1f706cd1eb794b16dfbfe60ee29 (patch) | |
tree | 20bb2db3d0de8c30317e242e09fce373de468b29 | |
parent | bc3c6058bc8f9845ae73f6dc727570778f103858 (diff) |
x86: vdso put vars in rodata
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 <roland@redhat.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/x86/vdso/vvar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/vdso/vvar.c b/arch/x86/vdso/vvar.c index 6fc22219a472..1b7e703684f9 100644 --- a/arch/x86/vdso/vvar.c +++ b/arch/x86/vdso/vvar.c | |||
@@ -8,5 +8,5 @@ | |||
8 | #include <asm/timex.h> | 8 | #include <asm/timex.h> |
9 | #include <asm/vgtod.h> | 9 | #include <asm/vgtod.h> |
10 | 10 | ||
11 | #define VEXTERN(x) typeof (__ ## x) *vdso_ ## x = (void *)VMAGIC; | 11 | #define VEXTERN(x) typeof (__ ## x) *const vdso_ ## x = (void *)VMAGIC; |
12 | #include "vextern.h" | 12 | #include "vextern.h" |