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