https://llvm.org/bugs/show_bug.cgi?id=26168
Bug ID: 26168
Summary: COFF writer does not correctly implement private
linkage
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
$ cat ctor.ll
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc18.0.0"
@bar = private constant i32 0
define private void @foo() {
ret void
}
$ bin/llc -filetype=obj -o ctor.o ctor.ll
$ bin/llvm-nm ctor.o
00000000 r Lbar
00000000 T Lfoo
Neither symbol should appear in the symbol table. At the very least "Lfoo"
should be a local symbol.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs