A static binary patch
H.J. Lu
hjl@lucon.org
Tue Aug 24 07:36:00 GMT 1999
>
> Date: Mon, 23 Aug 1999 18:36:53 -0700 (PDT)
> From: hjl@varesearch.com (H.J. Lu)
>
> Here is a patch for glibc 2.2. It can be used to minimize the static
> binary size together with the c_stubs addon. You can use
>
> # gcc -static ..... -lc_stubs
>
> It will stub out the gconv stuff. Not everything will work when
> -lc_stubs is used. __libc_c_stubs is needed since we have to make
> sure libcc_stubs.a is loaded even if nothing is referenced yet.
>
> Doesn't
>
> # gcc -static ..... -( -lc_stubs -lc -)
>
> work without the __libc_c_stubs hack?
>
I removed it in my second patch.
--
H.J. Lu (hjl@gnu.org)
More information about the Libc-hacker
mailing list