From: Martin W. <mai...@ma...> - 2011-10-22 19:52:35
|
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 |