x86, vdso: Move the vvar area before the vdso text
authorAndy Lutomirski <luto@amacapital.net>
Fri, 11 Jul 2014 01:13:15 +0000 (18:13 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 11 Jul 2014 23:57:51 +0000 (16:57 -0700)
commite6577a7ce99a506b587bcd1d2cd803cb45119557
tree71e985803dce2a087d98f98537efd37d1ba630e3
parentd093601be5e97d2729614419d0d256ed3b6a56b0
x86, vdso: Move the vvar area before the vdso text

Putting the vvar area after the vdso text is rather complicated: it
only works of the total length of the vdso text mapping is known at
vdso link time, and the linker doesn't allow symbol addresses to
depend on the sizes of non-allocatable data after the PT_LOAD
segment.

Moving the vvar area before the vdso text will allow is to safely
map non-allocatable data after the vdso text, which is a nice
simplification.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/156c78c0d93144ff1055a66493783b9e56813983.1405040914.git.luto@amacapital.net
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/vdso.h
arch/x86/vdso/vdso-layout.lds.S
arch/x86/vdso/vdso2c.c
arch/x86/vdso/vdso2c.h
arch/x86/vdso/vma.c