[LLVMbugs] [Bug 21655] New: [mach-o] Symbol offset not relevant in out-of-order nlists
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Nov 24 12:49:38 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=21655
Bug ID: 21655
Summary: [mach-o] Symbol offset not relevant in out-of-order
nlists
Product: lld
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: release blocker
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: dmlamb at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
In MachONormalizedFileBinaryReader.cpp at around ln432, the symtab nlists are
incorrectly assumed to be in-order from local to global to undefined. As a
result, relocations in MachONormalizedFileToAtoms.cpp at ln538 are improperly
assigned. The symbol index corresponds to whatever order the nlist is in, thus
all symbols should be parsed to the same array, rather than three disparate
ones.
Symptoms shown are cstrings and other data relocations appear to work if viewed
in a Mach-o reader, they will just point to the wrong entry in that nlist. Keep
in mind for repro that it's entirely possible the nlist is in the right order,
given a small symtab.
--
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/20141124/05bf7075/attachment.html>
More information about the llvm-bugs
mailing list