Better compress lazy binding info to match ld64.
authorPete Cooper <peter_cooper@apple.com>
Thu, 11 Aug 2016 20:59:27 +0000 (20:59 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 11 Aug 2016 20:59:27 +0000 (20:59 +0000)
commit1ed8f1f6e5d5c6f4a1591de0e872f35a611c7f59
tree051710b44c950d497bd15b845c3648d15a981b87
parentfaa7506f18a603ba97862c86c49ce946cdf2d0dd
Better compress lazy binding info to match ld64.

We should be using one of BIND_OPCODE_SET_DYLIB_SPECIAL_IMM, BIND_OPCODE_SET_DYLIB_ORDINAL_IMM,
and BIND_OPCODE_SET_DYLIB_ORDINAL_ULEB depending on whether ordinals are <= 0, <= 15, > 15.

This matches the behaviour of ld64.

llvm-svn: 278407
lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
lld/test/mach-o/bind-opcodes.yaml