BR 2148448: Fix RIP-relative addressing with an immediate
commit9f8171317d27fbee3326ed2ffc917de2c7f1dd42
authorH. Peter Anvin <hpa@zytor.com>
Tue, 7 Oct 2008 02:11:07 +0000 (6 19:11 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 7 Oct 2008 02:11:07 +0000 (6 19:11 -0700)
treee8ab6713d107c00cc87ba34f44fdf0ea2afe5b7c
parenta9ed99bddfd1d36ce98417f926d55a26e64d441d
BR 2148448: Fix RIP-relative addressing with an immediate

When there is an immediate in the instruction, a RIP-relative offset
may not be relative to the end of the offset itself, since it is
relative to the end of the *instruction*, not the end of the *offset*.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
assemble.c
test/riprel2.asm [new file with mode: 0644]