Commit 0f4b1220 authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Andrei Vagin

x86/vdso: add ia32 vdso symbols

For 32-bit at this moment there are follwing entries:
o __vdso_clock_gettime
o __vdso_gettimeofday
o __vdso_time
o __kernel_vsyscall
o __kernel_sigreturn
o __kernel_rt_sigreturn

So, there isn't __vdso_getcpu(), which is present in 64-bit vDSO,
and 64-bit vDSO doesn't have those __kernel_*.
This is fine as two vdso blobs with the same not present symbols
are considered to be the same in comparison.
I didn't introduce ARCH_VDSO_SYMBOLS_32, as it would have different
size and that will result in quite painful conversion of struct
vdso_symtable (it's fixed size and e.g., inside parasite's parameters)
Which is not needed by the described behavior of vdso blobs comparison.
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent eaa79ea2
...@@ -12,13 +12,16 @@ ...@@ -12,13 +12,16 @@
* This is a minimal amount of symbols * This is a minimal amount of symbols
* we should support at the moment. * we should support at the moment.
*/ */
#define VDSO_SYMBOL_MAX 4 #define VDSO_SYMBOL_MAX 7
#define ARCH_VDSO_SYMBOLS \ #define ARCH_VDSO_SYMBOLS \
"__vdso_clock_gettime", \ "__vdso_clock_gettime", \
"__vdso_getcpu", \ "__vdso_getcpu", \
"__vdso_gettimeofday", \ "__vdso_gettimeofday", \
"__vdso_time" "__vdso_time", \
"__kernel_vsyscall", \
"__kernel_sigreturn", \
"__kernel_rt_sigreturn"
struct vdso_symtable; struct vdso_symtable;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment