https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93654
--- Comment #7 from Andrew Cooper <andrew.cooper3 at citrix dot com> --- Yes - that works. Confirmed that I have both retpolines and endbr64 instructions, and the resulting hypervisor boots. (I don't have CET capable hardware, but that is fine. There is at minimum there is MSR setup to do, so any other issues can be addressed at that time.)