[llvm-bugs] [Bug 33966] New: cfi-icall + ThinLTO: does not include function decl/def names in hash used for caching

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 27 12:45:35 PDT 2017


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: unassignedbugs at nondot.org
          Reporter: peter at pcc.me.uk
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170727/25e6b257/attachment.html>


More information about the llvm-bugs mailing list