https://bugs.llvm.org/show_bug.cgi?id=35022
Bug ID: 35022
Summary: some vtable symbol refs use GOT despite hidden
visibility
Product: clang
Version: trunk
Hardware: PC
OS: other
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangb...@nondot.org
Reporter: rol...@hack.frob.com
CC: llvm-bugs@lists.llvm.org, pho...@chromium.org
The attached input file starts with:
#pragma GCC visibility push(hidden)
so all definitions and all external references should be treated as if they had
individual __attribute__((visibility("hidden"))). Hence there should be no GOT
references.
However, it generates a GOT reference for _ZTV21BlockingPortAllocator, a C++
vtable symbol.
In the attached .ll file, the symbol is declared:
@_ZTV21BlockingPortAllocator = external unnamed_addr constant { [6 x i8*] }
I think this is where "hidden" is missing, so it appears to be a Clang issue
rather than a backend issue.
The test case is for x86-64 but I'm having the same issue on aarch64 too.
--
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