This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/2] Add VDSO version of sched_getcpu on powerpc
>
> + __vdso_getcpu = _dl_vdso_vsym ("__kernel_getcpu", &linux2615);
>
> Considering that __kernel_getcpu for powerpc went into the Linux
> kernel last July (3.5), I believe this should be:
>
> PREPARE_VERSION (linux35, "LINUX_3.5", 61765365);
> __vdso_getcpu = _dl_vdso_vsym ("__kernel_getcpu", &linux35);
That would be the case if the kernel folks had used proper symbol
versioning discipline for adding new features to the vDSO. But they
didn't. The version set name has to match what's in the vDSO image,
obviously. The powerpc vDSO uses "LINUX_2.6.15".