omitting all compatibility interfaces from the build
Rasmus Villemoes
rasmus.villemoes@prevas.dk
Fri Feb 7 09:50:00 GMT 2020
Hi,
When doing a complete BSP build for an embedded target, there are and
will not be any old existing binaries that have been linked against an
older libc. Hence there is no need for any version of any symbol other
than the currently exposed ones. So would it be possible to add a
configure knob for omitting all the code for the unused/unneeded interfaces?
I looked into shlib-compat.h, and it seems doing
-#ifdef SHARED
+#if defined(SHARED) && !defined(OMIT_COMPAT_VERSIONS)
would be a simple first step, but I assume it can't be that simple - I'm
guessing some later steps in the build process would need tweaking as well.
I'd be happy to do the actual work and figure out what actually needs to
be done, but I first want to hear if such a configure knob is completely
off-the-table before digging into this.
Thanks,
Rasmus
More information about the Libc-alpha
mailing list