On Wed, Nov 19, 2003 at 04:26:24PM -0500, Pierre A. Humblet wrote: > Corinna Vinschen wrote: > > Does ld on Cygwin support weak symbols? Or is it possible to > > define __imp__res_query additionally to __imp____res_query? > > Very interesting, thanks. > Apparently ld can do it, either with a DEF file (yuck, dll only?)
That would be no problem! Even on Linux, the static libresolv.a lib has the __res_query symbol *only*. The weak reference is only defined in the shared library. If we have a a workaround for the DLL, that would be enough :-) > I had thought about adding a symbol. > One solution to define the additional symbol is to use something > like the newsym script in cygwin. > Btw, could cygwin use weak symbols instead of newsym? Dunno. If weak symbols are not supported, I guess the answer is no. But the idea to use something similar as newsym is cool. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:[EMAIL PROTECTED] Red Hat, Inc.
