Open namazso opened 1 year ago
I found part of the issue:
This condition triggers, resulting in an early return:
Which results in this piece of code not running:
Adding a dirty goto in place of the return makes it emit the section at least.
Unfortunately this isn't a fix yet as the symbol points at the wrong place:
Reproducer:
Output (
link.exe
is used for linking due to LLD bug with EHcont):I'll investigate a bit more to find out where the issue could be, as this functionality is supposedly tested by https://github.com/llvm/llvm-project/blob/345acac85d382998e5721073cc077e47e799311f/llvm/test/CodeGen/X86/ehcontguard.ll