From: nasm-bot f. K. K. <ke...@ka...> - 2012-11-28 16:09:31
|
Commit-ID: 0863bc386b2607d9f689d9ff23094e042b54f9eb Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=0863bc386b2607d9f689d9ff23094e042b54f9eb Author: Keith Kanios <ke...@ka...> AuthorDate: Wed, 28 Nov 2012 20:05:20 +0400 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Wed, 28 Nov 2012 20:05:20 +0400 BR3392232: Fix relocations in MachO64 Signed-off-by: Keith Kanios <ke...@ka...> Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- output/outmac64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); |