This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Attachment: binutils.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]