summaryrefslogtreecommitdiffstats
path: root/arch/x86/vdso
diff options
context:
space:
mode:
authorRoland McGrath2008-04-28 03:45:38 +0200
committerLinus Torvalds2008-04-28 22:49:35 +0200
commitd9dedc13851f9cbd568fbc631a17b0be83404957 (patch)
tree4ced6cf6715c0805d1f15fd414b0c97a69fe6b1c /arch/x86/vdso
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq (diff)
downloadkernel-qcow2-linux-d9dedc13851f9cbd568fbc631a17b0be83404957.tar.gz
kernel-qcow2-linux-d9dedc13851f9cbd568fbc631a17b0be83404957.tar.xz
kernel-qcow2-linux-d9dedc13851f9cbd568fbc631a17b0be83404957.zip
x86_64 vDSO: use initdata
The 64-bit vDSO image is in a special ".vdso" section for no reason I can determine. Furthermore, the location of the vdso_end symbol includes some wrongly-calculated padding space in the image, which is then (correctly) rounded to page size, resulting in an extra page of zeros in the image mapped in to user processes. This changes it to put the vdso.so image into normal initdata as we have always done for the 32-bit vDSO images. The extra padding is gone, so the user VMA is one page instead of two. The image that was already copied around at boot time is now in initdata, so we recover that wasted space after boot. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/vdso')
-rw-r--r--arch/x86/vdso/vdso.S10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/x86/vdso/vdso.S b/arch/x86/vdso/vdso.S
index 4b1620a1529e..1d3aa6b87181 100644
--- a/arch/x86/vdso/vdso.S
+++ b/arch/x86/vdso/vdso.S
@@ -1,2 +1,10 @@
- .section ".vdso","a"
+#include <linux/init.h>
+
+__INITDATA
+
+ .globl vdso_start, vdso_end
+vdso_start:
.incbin "arch/x86/vdso/vdso.so"
+vdso_end:
+
+__FINIT