summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
authorKeith Kanios <keith@kanios.net>2012-11-28 20:05:20 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2012-11-28 20:05:20 +0400
commit0863bc386b2607d9f689d9ff23094e042b54f9eb (patch)
treeeb8359329d674df464e1b97f401555d6159d641f /output
parent5fa17e83985a0659427cd5e085ca4bd331c07f8c (diff)
downloadnasm-0863bc386b2607d9f689d9ff23094e042b54f9eb.tar.gz
nasm-0863bc386b2607d9f689d9ff23094e042b54f9eb.tar.bz2
nasm-0863bc386b2607d9f689d9ff23094e042b54f9eb.zip
BR3392232: Fix relocations in MachO64
Signed-off-by: Keith Kanios <keith@kanios.net> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'output')
-rw-r--r--output/outmac64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/output/outmac64.c b/output/outmac64.c
index b26ff24..358ae6e 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");