[LLVMbugs] [Bug 19145] New: Symbol information not propagated from base to derived symbol

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 14 13:22:48 PDT 2014


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

            Bug ID: 19145
           Summary: Symbol information not propagated from base to derived
                    symbol
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Given

        .data
        .global bar
        .type bar, object
bar:
        .long 42
        .size bar, 4
        .global zed
zed = bar + 1


gas produces

  Symbol {
    Name: zed (5)
    Value: 0x1
    Size: 4
    Binding: Global (0x1)
    Type: Object (0x1)
    Other: 0
    Section: .data (0x2)
  }

and MC produces

  Symbol {
    Name: zed (5)
    Value: 0x1
    Size: 0
    Binding: Global (0x1)
    Type: None (0x0)
    Other: 0
    Section: .data (0x2)
  }

Note that gas copies Size and Type and we don't.

gas allows type to be overridden, but not size.

I am not sure how much of this is a bug is gas and how much is a bug in MC. I
will report a bug on binutils to start a discussion.

-- 
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/20140314/c6e7fcc9/attachment.html>


More information about the llvm-bugs mailing list