ylink icon indicating copy to clipboard operation
ylink copied to clipboard

comdat mismatches win32

Open callumenator opened this issue 9 years ago • 1 comments

Using ylink under win32 I keep getting comdat mismatch errors with symbols in phobos (https://github.com/yebblies/ylink/blob/master/symboltable.d#L84). I'm building dmd/phobos from git master.

I can get it to run properly by not throwing if either of the conflicting symbols is Comdat.Any, but I'm not sure what the standard behaviour is meant to be regarding multiple symbols if one of them is marked Unique (i.e. should the linker throw a multiple definition error even if the other symbol is marked Any?).

callumenator avatar Aug 05 '14 04:08 callumenator

The real question is - why on earth is _D3std5stdio8__assertFiZv (in the test I just did) coming out as Comdat.Unique?

yebblies avatar Aug 05 '14 14:08 yebblies