[LLVMbugs] [Bug 15361] New: Referencing symbol based on an undefined symbol results in incorrect relocation

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 26 03:39:06 PST 2013


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

            Bug ID: 15361
           Summary: Referencing symbol based on an undefined symbol
                    results in incorrect relocation
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: sergey.galanov at intel.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10080
  --> http://llvm.org/bugs/attachment.cgi?id=10080&action=edit
Example

For the example assembly code from the attachment, AsmParser emits reference to
A instead of X. Since ELF doesn't support relocations in symbol table, the
resulting value is incorrect (absolute zero).

GAS, on the other hand, references X with the corresponding offset. And if
definition of A is too complex, there's an error (llvm-mc is happy to accept
any definition but its value will obviously be incorrect).

-- 
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/20130226/e578f0d0/attachment.html>


More information about the llvm-bugs mailing list