Message-Id: <199605100957.FAA29393@delorie.com> Date: Fri, 10 May 96 12:39:54 LIT From: Martynas Kunigelis Subject: ld and libs To: DJGPP mailing list , Eli Zaretskii 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 into lib.a . It passes the -l 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?)