Next set of additional error checks for invalid Mach-O files for the
authorKevin Enderby <enderby@apple.com>
Tue, 11 Oct 2016 21:04:39 +0000 (21:04 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 11 Oct 2016 21:04:39 +0000 (21:04 +0000)
commit68fffa8a62f1d0262302f3a19c92f4c5cdc314ea
tree5166ed2acbac812fd49c014b0d67ebc7aef5c4fc
parentf4876beb2b700a1672b6e61f093c043e57953b3c
Next set of additional error checks for invalid Mach-O files for the
load commands that uses the MachO::linker_option_command
type but not used in llvm libObject code but used in llvm tool code.

This includes just LC_LINKER_OPTION load command.

llvm-svn: 283939
llvm/lib/Object/MachOObjectFile.cpp
llvm/test/Object/Inputs/macho-invalid-linkopt-bad-count [new file with mode: 0644]
llvm/test/Object/Inputs/macho-invalid-linkopt-bad-size [new file with mode: 0644]
llvm/test/Object/macho-invalid.test