today I found some code in LLVM that implies a Windows plus Mach-O subtarget is legal and I don't want to be alive anymore
That's asking for the wrong thing. The question is whether it can represent assembled output with all the needed relocations for final link.
-
-
the answer is no anyway if we're talking about SEH on x64 (at least)
-
the answer is no in general so long as you want to accurately handle the PE header, doubly so for things like UWP.
-
the answer is no if DLLs are involved, unless you leak __imp symbols through in which case you've created a pointless ELF variant
-
You're missing the point. These are .o files not executables. Those things are resolved at ld-time.
-
__declspec(dllimport) annotated functions and variables (and variables *have* to be imported) require different symbols & relocations
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.