[mach-o] fix typos. No function change

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@222197 91177308-0d34-0410-b5e6-96231b3b80d8
[mach-o] enhance arm64 reloc parser to support local pointer relocations

The arm64 assembler almost always uses r_extern=1 relocations in which the
r_symbolnum field is the index of the symbol the relocation references.  But
sometimes it will set r_extern=0 in which case the linker needs to read the
content of the reloction to determine the target.

Add test case that the r_extern=0 relocation round trips.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@222198 91177308-0d34-0410-b5e6-96231b3b80d8
[mach-o] fix typos. No function change

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@222199 91177308-0d34-0410-b5e6-96231b3b80d8
[mach-o] enhance arm64 reloc parser to support local pointer relocations

The arm64 assembler almost always uses r_extern=1 relocations in which the
r_symbolnum field is the index of the symbol the relocation references.  But
sometimes it will set r_extern=0 in which case the linker needs to read the
content of the reloction to determine the target.

Add test case that the r_extern=0 relocation round trips.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@222200 91177308-0d34-0410-b5e6-96231b3b80d8
[mach-o] extract atom alignment information from mach-o files

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@222201 91177308-0d34-0410-b5e6-96231b3b80d8
[mach-o] zero-fill sections have no file offset

In mach-o, sections of type S_ZEROFILL are special cased and to always have
their section.offset field be zero.

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@222202 91177308-0d34-0410-b5e6-96231b3b80d8