When run on the attached file, as crashes with the following message:
Assertion failure in coff_frob_symbol at ../../../src/binutils-2.20.1/gas/config/obj-coff.c line 125
Please report this bug.
The problem is the dot before '1288208123' on this line:
This bug exists in all versions of as I tried (MinGW-current,2.20.1,CVS).
Please could you upload the file that demonstrates this problem. Sending it as an attachment does not work. :-(
Created attachment 5097 [details]
File that demonstrates the problem
Sorry, I thought that I've already done that.
Created attachment 5100 [details]
Assuming that the frob_symbol hook can't be called twice on the same symbol, which it looks like to me, then weak_altname2name is just being paranoid in thinking that the symbol might have already been uniquified, and weak_uniquify itself doesn't need to take any care to avoid re-uniquifying a name.
Mikhail, I guess that you ran into this problem while you were building a larger project of some sort? Could you test the suggested patch on top of current CVS and verify that it gets you to the end of your build without any odd side-effects showing up?
I tried your patch, and it works for me. Thanks!
I'm just going to run a gcc bootstrap-and-test cycle using binutils built with this patch and make sure nothing bad shows up before I check it in.