The first string table entry should be a null terminated space, not just null.
authorPete Cooper <peter_cooper@apple.com>
Mon, 8 Aug 2016 23:20:04 +0000 (23:20 +0000)
committerPete Cooper <peter_cooper@apple.com>
Mon, 8 Aug 2016 23:20:04 +0000 (23:20 +0000)
commit5559b2493526d5ff38a66cb38b276c2a7e93b0c9
tree4f52db12740a987c67ceb5431671151d6112ffe2
parentf53c8cb4394e5a560a2a1bbfcd8da00af72a645e
The first string table entry should be a null terminated space, not just null.

This matches the behaviour of ld64 which initializes the string table with
' ' then '\0'.  lld only had the '\0' and needed the ' '.

llvm-svn: 278071
lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
lld/test/mach-o/string-table.yaml [new file with mode: 0644]