<div dir="ltr"><div class="gmail-post-text">
<p>I am trying to get __vdso_gettimeofday() for 32bit applications on a
64bit kernel. The changes I have tried is below, with these changes I am
not able to get this working. what am I missing.? on the same kernel
__vdso_gettimeofday for 64bit apps is able to use it.</p>
<p>My kernel version is :- 3.4.91</p>
<pre><code>diff --git a/arch/x86/vdso/vdso32/vdso32.lds.S b/arch/x86/vdso/vdso32/vdso32.lds.S
index 976124b..2ee34b3 100644
--- a/arch/x86/vdso/vdso32/vdso32.lds.S
+++ b/arch/x86/vdso/vdso32/vdso32.lds.S
@@ -19,11 +19,21 @@ ENTRY(__kernel_vsyscall);
*/
VERSION
{
+ LINUX_2.6 {
+ global:
+ __vdso_clock_gettime;
+ __vdso_gettimeofday;
+ __vdso_time;
+ };
+
LINUX_2.5 {
global:
__kernel_vsyscall;
__kernel_sigreturn;
</code></pre>
</div></div>