[patch]: Fix base-file and relocation for w64
Kai Tietz
Kai.Tietz@onevision.com
Wed Oct 1 12:11:00 GMT 2008
Hello Nick,
this patch changes the dumped base-file to use bfd_vma instead of long
types for addresses. Additionally it corrects in dlltool the generated
relocation type for w64 to DIR64. A remaining problem here is the secrel32
relocation in dw2 debug sections. But for the moment (as long as
executables are not loaded above the 4GB range) it should work. A solution
for this would be to extend the dumped base-file by its relocation type,
but I am not sure, if this wouldn't break 32-bit backward compatibility
here.
ChangeLog for bfd
2008-10-01 Kai Tietz <kai.tietz@onevision.com>
* cofflink.c (_bfd_coff_generic_relocate_section): Dump bfd_vma
sized addresses instead of long sized.
ChangeLog for binutils
2008-10-01 Kai Tietz <kai.tietz@onevision.com>
* dlltool.c (PAGE_SIZE): Make sure it has bfd_vma type.
(PAGE_MASK): Likewise.
(sfunc): Change to address size of bfd_vma for base-file.
(flush_page): Likewise.
(gen_exp_file): Likewise.
I tested this patch for w64 and for i686-pc-cygwin.
Ok to apply on trunk?
Cheers,
Kai
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: w64-dlltool.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20081001/6ade3437/attachment.txt>
More information about the Binutils
mailing list