mstorsjo wrote:

> If the SEH implementation assumes Thumb‑only semantics, it should explicitly 
> document that assumption and assert on ARM‑mode cases, because Windows itself 
> does not enforce Thumb‑only.
> 
> That avoids silent mis‑unwinds later if/when LLVM grows ARM‑mode support or 
> encounters ARM‑mode objects from external libraries.

That sounds reasonable to do.

> MSVC‑built binaries can contain ARM‑mode functions. That’s not speculation — 
> it’s observable behaviour in real MSVC output, especially around:
> 
> compiler‑generated helper functions
> 
> certain runtime thunks
> 
> older MSVC toolchains targeting Windows RT
> 
> mixed‑mode object files linked into modern binaries
> 
> I can provide concrete examples in a separate issue if needed

Thanks, I'd be curious to look at that if you do.

https://github.com/llvm/llvm-project/pull/184953
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to