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

Reply via email to