On Wednesday 04 February 2026 00:38:28 Jacek Caban wrote:
> On 12/26/25 14:05, Pali Rohár wrote:
> > > So the safest solution is, still, to hard-code the handler name in
> > > assembly string.
> > That is truth. I wanted to avoid hardcoding symbol names to prevent
> > possible symbol mangling issues, and the %p or %c modifier looked like
> > something which is prepared for those cases like this one.
>
> FWIW, on ARM64EC the compiler cannot know whether you mean the mangled or
> demangled symbol; both are valid names referring to the same thing, but with
> different meanings. In this case, you want the mangled form
> ("#__mingw_SEH_error_handler"). The demangled form will often work, but it
> is less reliable (archive symbol tables do not include it, so it relies on
> the alias being defined one way or another).
>
>
> Thanks,
>
> Jacek
Do you have some references to arm64ec documentation for symbol mangling?
The main problem which I have there is that I do not know how asm
directive .seh_handler should be used and what kind of mangling this
directive requires.
If there is some documentation, I would like to read it, it should help
me to understand this issue.
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public