This needs to be updated to actually handle dwarf unwind tables for mingw-w64.
Getting this initial diff onto phab so we can have a discussion about it.
This should build for mingw-w64 even if it is not useful.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Im not sure that this is a reasonable patch. I think that specializing a AddressSpace for _WIN32 is more likely what we want. Furthermore, this actually should be more restrictive, since the unwind library cannot be used for Windows -- the unwinding model on Windows is completely different. This only makes sense for MinGW and cygwin, and so we should ensure that the environment matches that.
src/AddressSpace.hpp | ||
---|---|---|
293 | Huh? This doesn't make sense. mach_header_64 on _WIN64? Plus, how does dladdr work here? | |
src/config.h | ||
54 | Please use defined. | |
55 | This should be using __declspec(dllexport) and . |
src/AddressSpace.hpp | ||
---|---|---|
293 | It's guarded by __APPLE__ and probably was added by mistake when modifying __LP64__ checks. |
@martell I think this patch can be discarded now. The CMake parts for mingw libs have been committed, and libunwind works for SjLj exceptions on mingw on x86, x86_64 and armv7 now (although only for static builds).
Huh? This doesn't make sense. mach_header_64 on _WIN64? Plus, how does dladdr work here?