Properly keep track of the base of relative relocations
commit8930a8fc151e095788de9242cb163f8d1779b9d4
authorH. Peter Anvin <hpa@zytor.com>
Tue, 21 Feb 2017 19:30:22 +0000 (21 11:30 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 21 Feb 2017 19:30:22 +0000 (21 11:30 -0800)
tree443e80afa580cb3544e6b4ce542f715a124a0882
parented71316e2bf64d77b57b93880f8ae384cf407da0
Properly keep track of the base of relative relocations

For expressions like [foo - $] or [bar - $$] our relocation base is
not the same as the end of the instruction.  Make that explicit.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
asm/assemble.c
include/nasm.h
output/legacy.c