This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH rsa/power8_partial]


On 06/21/2013 11:27 AM, Roland McGrath wrote:
> We could make rtld start passing an extra 0 argument now and that
> will vaguely narrow the range of glibc releases whose rtld is not
> compatible with IFUNC selectors that want to use the new bits.
> That has epsilon risk and maybe nonzero utility pending figuring out
> what we can actually do about the versioning problem (if there's
> anything that we really can do at all).

I suppose if we pass 0 now, then we can examine the second argument
iff AT_HWCAP2 is defined.  It might not be accurate, but it won't be
garbage...

Failing that, I've wondered about some sort of

  asm(".extern __ld_so_ifunc_args_2");

hack to get an undefined symbol into symtab of any user that requires two
arguments.  Then ld.so provides the symbol in version N.  Any program so built
will either fail to link against too old libc, or add the symbol version to its
.gnu.version_r section and fail to run on too old libc.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]