This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A static binary patch


hjl@lucon.org (H.J. Lu) writes:

|> > 
|> >    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
|> > 
|> >    Mon Aug 23 17:22:53 1999  H.J. Lu  <hjl@gnu.org>
|> > 
|> > 	   * Makeconfig (FILE): Define.
|> > 
|> > 	   * Rules (%.out): Run $(FILE) on the binary before running it
|> > 	   and don't use the dynamic linker if it is not dynamically
|> > 	   linked.
|> > 
|> > What is the point for these changes?  And what do they have to do with
|> > reducing the size of static binaries?  Please avoid becoming dependent
|> > on more external tools.  Using `file' is a violation of the GNU coding
|> > standards.
|> > 
|> 
|> My c_stubs addon has tests linked statically. When you run "make check"
|> in c_stubs, it will try to run it with
|> 
|> # ........./ld-linux.so.2 the_c_stubs_test .....
|> 
|> Since the_c_stubs_test is linked statically, it doesn't work. If you
|> can find a better way to fix it, I will appreciate it.

How about extending the ld.so so that if it is called with a static binary
it just execve()s it?

Andreas.

-- 
Andreas Schwab                                  "And now for something
schwab@suse.de                                   completely different."
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]