[llvm-bugs] [Bug 26168] New: COFF writer does not correctly implement private linkage

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 15 16:16:56 PST 2016


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


More information about the llvm-bugs mailing list