https://bugs.llvm.org/show_bug.cgi?id=33966
Bug ID: 33966
Summary: cfi-icall + ThinLTO: does not include function
decl/def names in hash used for caching
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 1.c
void f(void);
void* _start(void (*p)(void)) {
p();
return f;
}
$ cat 2.c
void f(void) {}
$ rm -rf cache/
$ clang -c -flto=thin -fsanitize=cfi-icall 1.c -O
$ clang -c 2.c -O
$ ld.lld 1.o 2.o --thinlto-cache-dir=cache
$ clang -c -flto=thin -fsanitize=cfi-icall 2.c -O
$ ld.lld 1.o 2.o --thinlto-cache-dir=cache
ld.lld: error: undefined symbol: f.cfi_jt
>>> referenced by 1.c
>>>
>>> cache/llvmcache-88B852A71DDDCDEA532AB952595D5ACDDE9A1936:(_start)
--
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