aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2005-04-16 18:24:48 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:24:48 -0400
commitc97db4a0a7d4d5be8c64a8d649a4425ee195b05c (patch)
treee310d0f9918d7a47359872fa519e2abe10b5d522 /arch/i386/kernel/Makefile
parentecd02dddd1d5bfc2141cbd0e205a53fb9d849c9e (diff)
[PATCH] i386 vDSO: add PT_NOTE segment
This patch adds an ELF note to the vDSO giving the LINUX_VERSION_CODE value. Having this in the vDSO lets the dynamic linker avoid the `uname' syscall it now always does at startup to ascertain the kernel ABI available. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/Makefile')
-rw-r--r--arch/i386/kernel/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/i386/kernel/Makefile b/arch/i386/kernel/Makefile
index 933787a46b4c..aacdae6f372d 100644
--- a/arch/i386/kernel/Makefile
+++ b/arch/i386/kernel/Makefile
@@ -56,7 +56,8 @@ SYSCFLAGS_vsyscall-sysenter.so = $(vsyscall-flags)
56SYSCFLAGS_vsyscall-int80.so = $(vsyscall-flags) 56SYSCFLAGS_vsyscall-int80.so = $(vsyscall-flags)
57 57
58$(obj)/vsyscall-int80.so $(obj)/vsyscall-sysenter.so: \ 58$(obj)/vsyscall-int80.so $(obj)/vsyscall-sysenter.so: \
59$(obj)/vsyscall-%.so: $(src)/vsyscall.lds $(obj)/vsyscall-%.o FORCE 59$(obj)/vsyscall-%.so: $(src)/vsyscall.lds \
60 $(obj)/vsyscall-%.o $(obj)/vsyscall-note.o FORCE
60 $(call if_changed,syscall) 61 $(call if_changed,syscall)
61 62
62# We also create a special relocatable object that should mirror the symbol 63# We also create a special relocatable object that should mirror the symbol
@@ -67,5 +68,6 @@ $(obj)/built-in.o: $(obj)/vsyscall-syms.o
67$(obj)/built-in.o: ld_flags += -R $(obj)/vsyscall-syms.o 68$(obj)/built-in.o: ld_flags += -R $(obj)/vsyscall-syms.o
68 69
69SYSCFLAGS_vsyscall-syms.o = -r 70SYSCFLAGS_vsyscall-syms.o = -r
70$(obj)/vsyscall-syms.o: $(src)/vsyscall.lds $(obj)/vsyscall-sysenter.o FORCE 71$(obj)/vsyscall-syms.o: $(src)/vsyscall.lds \
72 $(obj)/vsyscall-sysenter.o $(obj)/vsyscall-note.o FORCE
71 $(call if_changed,syscall) 73 $(call if_changed,syscall)