From: nasm-bot f. C. G. <gor...@gm...> - 2014-06-28 20:51:32
|
Commit-ID: 6ebe3bcd2ed116ae67b672d8281de093f04b30e0 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=6ebe3bcd2ed116ae67b672d8281de093f04b30e0 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sat, 28 Jun 2014 22:14:26 +0400 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sat, 28 Jun 2014 22:31:06 +0400 output: outbin -- Fix relocation size In commit fd52c277dd6d768545cee39b154e706904581966 we've started handling negative address relocations but support Elf format only and got a typo in bin format which leaded to endless cycle of applying relocation due to negative argument (make test hangs). Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- output/outbin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/outbin.c b/output/outbin.c index 6dc4b2a..c600e55 100644 --- a/output/outbin.c +++ b/output/outbin.c @@ -776,7 +776,7 @@ static void bin_out(int32_t segto, const void *data, } if (s->flags & TYPE_PROGBITS) { if (segment != NO_SEG) - add_reloc(s, size, segment, -1L); + add_reloc(s, asize, segment, -1L); p = mydata; WRITEADDR(p, *(int64_t *)data, asize); saa_wbytes(s->contents, mydata, asize); |