I pushed a version that uses winebuild. One downside I noticed is that now it's always pulled, even if the linker doesn't make use of it. For that a symbol in a static library symbol seems like an elegant way of just skipping it.
True. It solves the issue of winebuild generating empty input files though :wink:
When it's pulled, its symbols need to be resolved and some of them are builtin linker symbols, not supported by binutils (because they don't make sense without load config support). We don't support CF guards yet, so I just filled that with zeroes, but supporting them at some point seems potentially interesting.
Yes, we'll want that eventually.