[llvm-bugs] [Bug 33832] New: cfi-icall + ThinLTO: no jump table entry created for functions defined in both ThinLTO module and merged module
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jul 17 21:21:25 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33832
Bug ID: 33832
Summary: cfi-icall + ThinLTO: no jump table entry created for
functions defined in both ThinLTO module and merged
module
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Interprocedural Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: peter at pcc.me.uk
CC: llvm-bugs at lists.llvm.org
$ cat icall1.cpp
inline void f() {}
void sink(void (*)());
static struct A {
A() { sink(f); }
} a;
$ cat icall2.cpp
inline void f() {}
void sink(void (*)()) {}
int main() {
void (*p)() = f;
p();
}
$ clang++ icall{1,2}.cpp -fsanitize=cfi-icall -flto=thin -fuse-ld=lld -O2
-fno-sanitize-trap=cfi-icall -g
$ ./a.out
icall2.cpp:7:3: runtime error: control flow integrity check for type 'void ()'
failed during indirect function call
/tmp/icall1.cpp:1: note: f() defined here
--
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/20170718/0c8b25ff/attachment.html>
More information about the llvm-bugs
mailing list