* Amrita H. S. via Gcc: > I am interested to know if there any other better way to use ifuncs with > template functions. If there is none, is it worth suggesting to the C++ > standards?
IFUNC is GNU-specific. It's not supported by all ELF platforms, and not even by all non-glibc Linux targets. I think you can get the same effect just using standard C++ features, by making add a global variable of a suitable type that overrides operator(). There are issues related to constructor ordering, of course, but you have the same problem for IFUNC relocations. Thanks, Florian -- Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243, Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill