RtlImageNtHeaderEx needs seh.
Currently, this cannot be added because the rtl library is also used in:
One possible solution would be to:
19:25:55 <@hbelusca> one may create a "minirtl" library whose purpose is to be used in freeldr or host-tools for example, that does not compile SEH support, and the regular "rtl" library that is used in ntdll and ntoskrnl.
ThFabba suggested another alternative, which sounds simpler:
should we simply have the rtl library provide a private RtlpImageNtHeader function and put the SEH-wrapped public version in libsupp.c?
When this is fixed, the hack in FreeLibrary can be removed.