[patch]: Correct behavior of relocations R_AMD64_PCRLONG_<X>

Kai Tietz ktietz70@googlemail.com
Tue Oct 20 16:53:00 GMT 2009


Hello all,

This patch fixes an issue with PCRLONG relocations with additional
delta. Old code assumed, that delta should be added to relocation
position itself, but in fact it is a delta subtracted from addend
here.

2009-10-20  Kai Tietz  <kai.tietz@onevision.com>

	* coff-x86_64.c (coff_amd64_rtype_to_howto): Substract offset
	of R_AMD64_PCRLONG_<X> relocations from addend.

Tested for x86_64-w64-mingw32. Tested with gcc code in combination
with VC generated object code.

Ok for apply?

Cheers,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils.diff
Type: application/octet-stream
Size: 942 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20091020/47f4694e/attachment.obj>


More information about the Binutils mailing list