On 07/01/2011 08:55 AM, Dr. David Alan Gilbert wrote: > +/* Check that the kernel has a new enough version at load */ > +void __check_for_sync8_kernelhelper (void) > +{ > + if (__kernel_helper_version < 5) > + { > + const char err[] = "A newer kernel is required to run this binary. > (__kernel_cmpxchg64 helper)\n"; > + /* At this point we need a way to crash with some information > + for the user - I'm not sure I can rely on much else being > + available at this point, so do the same as generic-morestack.c > + write() and abort(). */ > + write (2 /* stderr */, err, sizeof(err)); > + abort (); > + } > +};
Wouldn't it be better to convert the arm kernel to use a proper VDSO, so that this error actually comes from the dynamic linker? That's the beauty of a true VDSO -- proper symbol resolution. r~