Google should strip out unreferenced symbols... but it probably doesn't matter
Google should strip out unreferenced symbols... but it probably doesn't matter
Posted Mar 21, 2011 12:25 UTC (Mon) by dank (guest, #1865)In reply to: What Google's actually doing by foom
Parent article: Has Bionic stepped over the GPL line?
headers that is not actually required to compile working apps.
That was clearly Google's intent, and if they succeeded, I think
they have met Linus's intent as expressed in his emails (and understood
in context, i.e. since Bionic is not a loadable kernel module, one
shouldn't apply Linus's comments about LKMs to it).
Let's examine the resulting headers to see how close Google came to this,
and see if we can find particular lines that are not forced by the kernel ABI.
I looked at one file,
http://lxr.e2g.org/source/bionic/libc/kernel/common/linux...
and saw a few things that seem like they could have been stripped out.
Two examples:
CONFIG_EXT3_INDEX is not unreferenced anywhere (see
http://lxr.e2g.org/ident?i=CONFIG_EXT3_INDEX )
ext3_debug is only referenced inside the kernel, and is defined by
the unstripped kernel headers (see
http://lxr.e2g.org/ident?i=ext3_debug )
I didn't see anything that is both required and 'expressive'.
I suspect the only thing Google ought to do is remove the symbols from the
headers that are not referenced by bionic, but since they're not
referenced, no actual harm has been done.
(Hi, Florian! Are you the same Florian I knew at Knowledge Adventure?)
