https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93492
Bug ID: 93492
Summary: Broken code with -fpatchable-function-entry and
-fcf-protection=full
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: nsz at gcc dot gnu.org
Target Milestone: ---
x86 version of bug 92424
endbr64 is not right at the function label with
-fcf-protection=full -fpatchable-function-entry=1
void f(){} is compiled to
f:
.section __patchable_function_entries,"aw",@progbits
.quad .LPFE1
.text
.LPFE1:
nop
.LFB0:
.cfi_startproc
endbr64
ret
.cfi_endproc
.LFE0:
.size f, .-f