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]


> 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...

That only flies (at the marginal altitude it can achieve at all) if the
program requires some GLIBC_2.18 symbols for some other reason.  Otherwise
you can build with 2.18 and get a binary that happily runs with an older
rtld but wrongly thinks its selectors' second argument is not 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.

Right.  I think we discussed this before and it should work if used, but
it's less clear how we can arrange to make it highly likely that people
writing IFUNC selectors will actually use it.  (I vaguely recall suggesting
some selector-defining macros or something.)


Thanks,
Roland


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