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



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to