2012/3/22 NightStrike <[email protected]>: > On Sat, Oct 22, 2011 at 3:52 PM, Martin Whitaker > <[email protected]> wrote: >> xunxun wrote: >>> 于 2011/10/22 2:44, Earnie 写道: >>>> Using --enable-extra-pe-debug ld switch I found the symbol defined as >>>> .weak._myfunc. so I then added --defsym _myfunc=.weak._myfunc. and the >>>> binary was built and executes. So why the extra "." symbol on the end? >>>> Whose at fault GCC for the extra "." or binutils for ignoring it? >>> So may someone report to binutils bugzilla? >>> >> I've found an existing bug report for this: >> >> http://sourceware.org/bugzilla/show_bug.cgi?id=9687 >> >> Reading that, it doesn't seem that the extra "." is the problem (and patching >> gas to eliminate the extra "." did not fix it). >> >> Unfortunately the bug report dates back to 2008, so it doesn't look like >> there's any impetus to fix it. >> >> Martin > > Kai, would you mind taking a look at this binutils bug and seeing if > there's a way to resolve it? Martin has been having a problem since > October.
Well, I am aware of that issue. I tried once to investigate this in more detail, but had to find out that if I change this '.' issue I would break cygwin badly. Point is that a weak symbol gets decorated by an '.'<extension> for its implemenation and then this symbol is defined as weak. Kai ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
