Allow relative references to external symbols in data
commit472a7c1d17e0212b3cbf5302a9f5cdb358be4425
authorH. Peter Anvin <hpa@zytor.com>
Mon, 31 Oct 2016 15:44:25 +0000 (31 08:44 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 31 Oct 2016 15:44:25 +0000 (31 08:44 -0700)
treeb7a6514d05d061218715cc684c1610d74899cf5e
parent6600eb1188314ddd3eb7fd74d18240cfe7746049
Allow relative references to external symbols in data

Allow constructs like:

      dd foo - $

... where foo is an external symbol.  Currently this is only
implemented for extops, i.e. dx opcodes.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
asm/assemble.c
asm/parser.c
include/nasm.h
test/imm.asm [new file with mode: 0644]
test/reldef.asm [new file with mode: 0644]