]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] ppc64: add PT_NOTE section to vDSO
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 1 May 2005 15:58:43 +0000 (08:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:58:43 +0000 (08:58 -0700)
commit1b29f9d13e3cf0fe86bf7f82a3399c9e3caf58e5
tree49fa54910161c2d0741e2a34a01e5d35d6b6e82c
parent085e6fc96bcf239cab8adc600aab2452d75590b1
[PATCH] ppc64: add PT_NOTE section to vDSO

This patch from Roland adds a PT_NOTE section to both 32 and 64 bits vDSOs
to expose the kernel version to glibc, thus avoiding a uname syscall on
every launch.  This is equivalent to the patches Roland posted already for
x86 and x86-64.

Note: the 64 bits .note is actually using the 32 bits format.  This is
normal.  The ELF spec specifies a different format for 64 bits .note, but
for some reason, this was never properly implemented, the core dumps for
example are all using 32 bits format .note, and binutils cannot even read a
64 bits format .note.  Talking to our toolchain folks, they think we'd
rather stick to 32 bits format .note everywhere and get the spec fixed some
day ...

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/vdso32/Makefile
arch/ppc64/kernel/vdso32/note.S [new file with mode: 0644]
arch/ppc64/kernel/vdso32/vdso32.lds.S
arch/ppc64/kernel/vdso64/Makefile
arch/ppc64/kernel/vdso64/note.S [new file with mode: 0644]
arch/ppc64/kernel/vdso64/vdso64.lds.S