[llvm-bugs] [Bug 45364] New: x86 -fcf-protection -mcmodel=large is broken

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 30 14:42:45 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45364

            Bug ID: 45364
           Summary: x86 -fcf-protection -mcmodel=large is broken
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: efriedma at quicinc.com
                CC: craig.topper at gmail.com, hjl.tools at gmail.com,
                    llvm-bugs at lists.llvm.org, llvm-dev at redking.me.uk,
                    spatel+llvm at rotateright.com, xiang1.zhang at intel.com

Testcase:

void ext();
__attribute((noinline)) static void a() { ext(); }
void b() { a(); }

Compile with "clang -O2 -mcmodel=large -fcf-protection".  Note the indirect
call to "a", which does not have an endbr.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200330/31000647/attachment-0001.html>


More information about the llvm-bugs mailing list