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: unassignedb...@nondot.org
Reporter: pe...@pcc.me.uk
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs