A static binary patch

Mark Kettenis kettenis@wins.uva.nl
Mon Aug 23 23:33: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?

Mark


More information about the Libc-hacker mailing list