------- Additional Comments From tcl_de at gmx dot net 2009-03-21 09:39 ------- Dave, you should probably have a look at http://sourceware.org/bugzilla/show_bug.cgi?id=2729. In that bug, you can see how the interix people dealt with the problem... (they did use IMAGE_WEAK_EXTERN_SEARCH_ALIAS).
The way I understand what the GNU extension really is, is that gas automatically renames the original function to .weak.##nameoffunction##. and creates a weak extern ##nameoffunction## refering to .weak.##nameoffunction## which makes ##nameoffunction## a normal pecoff weak external The requirement that sym2 is always linked is met in my testcase because the weak extern/symbol definition is in the same object file as sym2. (otherwise link.exe would probably not link my object files...) So as far as I can understand that problem all of this should theoretically also work in gnu as and ld. -- http://sourceware.org/bugzilla/show_bug.cgi?id=9687 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils