output: bin -- Fix section length miscalc for OUT_ADDRESS
commitd72bec12bc0f9dbc1aceedb6c831d32b6e47ece1
authorCyrill Gorcunov <gorcunov@gmail.com>
Sun, 15 Feb 2015 15:18:27 +0000 (15 18:18 +0300)
committerCyrill Gorcunov <gorcunov@gmail.com>
Sun, 15 Feb 2015 15:18:57 +0000 (15 18:18 +0300)
tree16f7f4a5ce0561b1a630e8e08c5ad0f9099f54f9
parent6d42e9ba4730dc8472e4ec698e2af549c53861c3
output: bin -- Fix section length miscalc for OUT_ADDRESS

While we using proper @asize variable for relocation itself
we miss the fact that @size variable (which might be negative
for signed relocations since fd52c277dd6) is used to calculate
section size increment.

http://bugzilla.nasm.us/show_bug.cgi?id=3392299

Reported-by: Ben de Waal <ben@dewaals.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
output/outbin.c