]> granicus.if.org Git - llvm/commit
[Object] Remove check for BIND_OPCODE_DONE/REBASE_OPCODE_DONE.
authorJuergen Ributzka <juergen@ributzka.de>
Thu, 30 Mar 2017 19:56:50 +0000 (19:56 +0000)
committerJuergen Ributzka <juergen@ributzka.de>
Thu, 30 Mar 2017 19:56:50 +0000 (19:56 +0000)
commit2bca52a6bf6be5ba57215e95a45b2cfec4dbadc3
tree7f5c5fb5f10406e922b26bd37e8b0ed16938566a
parent5fd6afdd7d27339260a7a4fd3776cd5624cf05e3
[Object] Remove check for BIND_OPCODE_DONE/REBASE_OPCODE_DONE.

BIND_OPCODE_DONE/REBASE_OPCODE_DONE may appear at the end of the opcode array,
but they are not required to. The linker only adds them as padding to align the
opcodes to pointer size.

This fixes rdar://problem/31285560.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299104 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Object/MachOObjectFile.cpp
test/tools/llvm-objdump/Inputs/macho-bind-missing-done [deleted file]
test/tools/llvm-objdump/Inputs/macho-rebase-missing-done [deleted file]
test/tools/llvm-objdump/macho-bad-bind.test