ELF64: actually generate relative GOT/PLT references correctly
commitd5e7498556623df728e1e4cad601f6d9ab2d6740
authorH. Peter Anvin <hpa@zytor.com>
Sat, 18 Oct 2008 06:06:46 +0000 (17 23:06 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 18 Oct 2008 06:06:46 +0000 (17 23:06 -0700)
tree193db1ed6ee125041365ce4cdd0769b4ad14813e
parent9d8b57d08131b91652220e8c8bf3c0d56090aea7
ELF64: actually generate relative GOT/PLT references correctly

Fix the arithmetic for relative GOT/PLT references.

We still can't enable exactitude, because of the assumption that
"size" is always the proper adjustment for the offset of the
displacement inside the instruction, which is wrong in the case of
displacements that are followed by an immediate.  This also affects
the list file, so it really should be fixed.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
output/outelf64.c