summaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/vsyscall.lds.S
diff options
context:
space:
mode:
authorRoland McGrath2005-04-17 00:24:48 +0200
committerLinus Torvalds2005-04-17 00:24:48 +0200
commitc97db4a0a7d4d5be8c64a8d649a4425ee195b05c (patch)
treee310d0f9918d7a47359872fa519e2abe10b5d522 /arch/i386/kernel/vsyscall.lds.S
parent[PATCH] i386: Use loaddebug macro consistently (diff)
downloadkernel-qcow2-linux-c97db4a0a7d4d5be8c64a8d649a4425ee195b05c.tar.gz
kernel-qcow2-linux-c97db4a0a7d4d5be8c64a8d649a4425ee195b05c.tar.xz
kernel-qcow2-linux-c97db4a0a7d4d5be8c64a8d649a4425ee195b05c.zip
[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/vsyscall.lds.S')
-rw-r--r--arch/i386/kernel/vsyscall.lds.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/i386/kernel/vsyscall.lds.S b/arch/i386/kernel/vsyscall.lds.S
index 3a8329d6536e..a7977707c8e5 100644
--- a/arch/i386/kernel/vsyscall.lds.S
+++ b/arch/i386/kernel/vsyscall.lds.S
@@ -23,7 +23,7 @@ SECTIONS
. = VSYSCALL_BASE + 0x400;
.text : { *(.text) } :text =0x90909090
-
+ .note : { *(.note.*) } :text :note
.eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
.eh_frame : { KEEP (*(.eh_frame)) } :text
.dynamic : { *(.dynamic) } :text :dynamic
@@ -43,6 +43,7 @@ PHDRS
{
text PT_LOAD FILEHDR PHDRS FLAGS(5); /* PF_R|PF_X */
dynamic PT_DYNAMIC FLAGS(4); /* PF_R */
+ note PT_NOTE FLAGS(4); /* PF_R */
eh_frame_hdr 0x6474e550; /* PT_GNU_EH_FRAME, but ld doesn't match the name */
}