macho: Fix relocation type for relative direct branch
commitb10435f06e65df9e8fd2e1d8e8e62524e79ebec2
authorChang S. Bae <chang.seok.bae@intel.com>
Thu, 23 Aug 2018 21:13:45 +0000 (23 14:13 -0700)
committerCyrill Gorcunov <gorcunov@gmail.com>
Fri, 24 Aug 2018 08:21:58 +0000 (24 11:21 +0300)
treeffc3da464b55d0ca31b5682833fff708b191c9e1
parent1fd4c45c96994896995c9654aa24d114777d6df5
macho: Fix relocation type for relative direct branch

Previously, X86_64_RELOC_BRANCH is only set for external
relocations. Internal relocation also needs this type to be
set, instead of the default (X86_64_RELOC_SIGNED) or
anything.

Reported-by: <zenith432@users.sourceforge.net>
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
output/outmacho.c