[LLVMbugs] [Bug 19147] New: Wrong section and value for symbol in COFF

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 14 20:44:09 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19147

            Bug ID: 19147
           Summary: Wrong section and value for symbol in COFF
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: ASSIGNED
          Severity: normal
          Priority: P
         Component: MC
          Assignee: rafael.espindola at gmail.com
          Reporter: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Given

    .data
    .globl    foo
foo:
        .long 42

        .globl zed
zed = foo + 1

MC produces

  Symbol {
    Name: zed
    Value: 0
    Section:  (-1)
    BaseType: Null (0x0)
    ComplexType: Null (0x0)
    StorageClass: External (0x2)
    AuxSymbolCount: 0
  }

Gas produces

  Symbol {
    Name: zed
    Value: 1
    Section: .data (2)
    BaseType: Null (0x0)
    ComplexType: Null (0x0)
    StorageClass: External (0x2)
    AuxSymbolCount: 0
  }

-- 
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/20140315/3b2092eb/attachment.html>


More information about the llvm-bugs mailing list