delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/12/03:06:40

Date: Sun, 12 May 1996 09:59:47 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Martynas Kunigelis <martynas DOT kunigelis AT VM DOT KTU DOT LT>
Cc: DJGPP mailing list <djgpp AT delorie DOT com>
Subject: Re: ld and libs
In-Reply-To: <9605101057.AA22759@is.elta.co.il>
Message-Id: <Pine.SUN.3.91.960512095346.25343D-100000@is>
Mime-Version: 1.0

On Fri, 10 May 1996, Martynas Kunigelis wrote:

>   I was wandering why putting empty wildcard globbing and environmet file
> loading functions to a library and linking with it won't replace the original
> ones in the final exec. Eli said this should work. I've got it!!! Eli, the
> above functions are called from *within* libc itself, so ld finds them in
> libc as well and never looks anywhere else. So simple.

This is a simple consequence of the fact that ld is a one-pass linker.  To
force it to use your versions of these functions, extract crt1.o from
libc.a and put it into your library together with the empty functions. 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019