[LLVMbugs] [Bug 18457] New: add with symbolic immediate hits llvm_unreachable when writing object file
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jan 13 10:08:57 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18457
Bug ID: 18457
Summary: add with symbolic immediate hits llvm_unreachable when
writing object file
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: ARM
Assignee: unassignedbugs at nondot.org
Reporter: joerg at NetBSD.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Try something like
.Lfoo:
add r0, pc, #.Lfoo - .
This creates a fixup of type 134 (fixup_thumb_adr_pcrel_10).
This is folded correctly by MCExpr::EvaluateSymbolicAdd when called from
MCAssembler::evaluateFixup via line 360. At this point, the fixup has been
patched up, so that both symbols are removed and line 371 is hit. Ultimately,
the code decides that the fixup is still needed, but the object writer later
rejects it as unimplemented.
--
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/20140113/7b43dd5a/attachment.html>
More information about the llvm-bugs
mailing list