diff --git a/llvm/lib/ObjectYAML/MachOEmitter.cpp b/llvm/lib/ObjectYAML/MachOEmitter.cpp --- a/llvm/lib/ObjectYAML/MachOEmitter.cpp +++ b/llvm/lib/ObjectYAML/MachOEmitter.cpp @@ -301,7 +301,7 @@ uint64_t segOff = is64Bit ? LC.Data.segment_command_64_data.fileoff : LC.Data.segment_command_data.fileoff; if (0 == - strncmp(&LC.Data.segment_command_data.segname[0], "__LINKEDIT", 16)) { + strncmp(&LC.Data.segment_command_data.segname[0], "__LINKEDIT", 10)) { FoundLinkEditSeg = true; LinkEditOff = segOff; if (Obj.RawLinkEditSegment)