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]: Fix base-file and relocation for w64


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.

Attachment: w64-dlltool.txt
Description: Text document


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