From 0863bc386b2607d9f689d9ff23094e042b54f9eb Mon Sep 17 00:00:00 2001 From: Keith Kanios Date: Wed, 28 Nov 2012 20:05:20 +0400 Subject: [PATCH] BR3392232: Fix relocations in MachO64 Signed-off-by: Keith Kanios Signed-off-by: Cyrill Gorcunov --- output/outmac64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/outmac64.c b/output/outmac64.c index b26ff245..358ae6e4 100644 --- a/output/outmac64.c +++ b/output/outmac64.c @@ -580,7 +580,7 @@ static void macho_output(int32_t secto, const void *data, case OUT_REL4ADR: p = mydata; - WRITELONG(p, *(int64_t *)data); + WRITELONG(p, *(int64_t *)data + 4 - size); if (section == secto) nasm_error(ERR_PANIC, "intra-section OUT_REL4ADR"); -- 2.11.4.GIT