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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to