__xstat et al. as compat symbols
Florian Weimer
fweimer@redhat.com
Thu Oct 22 15:37:50 GMT 2020
* Adhemerval Zanella:
> Thanks for bring this up, and I agree with you that this breakage might
> incur in more headaches than solutions. I will send a fix to export
> the xstat symbols in static objects as well, while preserving the compat
> symbols on shared objects.
Sorry, I do not see how the compat symbols work for the Ocaml use case?
The compat symbol is what creates the Ocaml link failure. It has to be
a non-compat symbol. We have to rely on lack of use in the installed
headers (which does not seem to be a real problem in this particular
case).
By the way, I verified that glibc 2.0 binaries without symbol versioning
can bind to the __xstat compat symbol. Apparently binaries can do that
as long as they do not contain any version information at all:
165100: binding file /home/fweimer/src/my/glibc-test-binaries/gcc-2.7.2.3/i386/root/usr/bin/gcc [0] to ./libc.so.6 [0]: normal symbol `__xstat'
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
More information about the Libc-alpha
mailing list