diff options
Diffstat (limited to 'output/outmac64.c')
-rw-r--r-- | output/outmac64.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |