delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/10/06:07:44

Message-Id: <199605100957.FAA29393@delorie.com>
Date: Fri, 10 May 96 12:39:54 LIT
From: Martynas Kunigelis <martynas DOT kunigelis AT VM DOT KTU DOT LT>
Subject: ld and libs
To: DJGPP mailing list <djgpp AT delorie DOT com>, Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>

  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.

Martynas

BTW, gcc driver does not substitute -l<lib> into lib<lib>.a . It passes the
-l<lib> options along to ld, which does the `demangling' itself.

P.S. the DLL thread: using no linker does not sound like a good idea to me:
     object files are BIG. I think what we need is a smart linker (who will
     try to write one?)

- Raw text -


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