PATCH: w64 native support

Kai Tietz Kai.Tietz@onevision.com
Tue Apr 10 16:23:00 GMT 2007


binutils-owner@sourceware.org wrote on 10.04.2007 18:12:45:

> On Tue, Apr 10, 2007 at 06:05:35PM +0200, Kai Tietz wrote:
> > Hello,
> > 
> > trying to build libbfd and the other binutils tools native for x86_64 
> > mingw, I noticed some bugs in libbfd and other places, where the type 
> > "long" was used instead of the bfd_vma type for may pointer values. 
Also I 
> > introduced for libiberty "splay-tree.h" a necessary patch about 
> > pointer/long sizes.
> > 
> 
> Have you looked at
> 
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=2737
> 
> Does windres work for x64?

For x64 mingw yes, because the type long remains 32-bit in MS ABI. This 
bug seems to be more a bug of mingw headers for x64 linux. Because on x64 
linux the long becomes 64-bit wide, but for MS abi this isn't true. May 
the types of this defines as DWORD should be retyped as "unsigned int" ? 
On MS Abi there is a new type DWORD64 for 64-bit width.

Regards,
 i.A. Kai Tietz

------------------------------------------------------------------------------------------
  OneVision Software Entwicklungs GmbH & Co. KG
  Dr.-Leo-Ritter-Straße 9 - 93049 Regensburg
  Tel: +49.(0)941.78004.0 - Fax: +49.(0)941.78004.489 - www.OneVision.com
  Commerzbank Regensburg - BLZ 750 400 62 - Konto 6011050
  Handelsregister: HRA 6744, Amtsgericht Regensburg
  Komplementärin: OneVision Software Entwicklungs Verwaltungs GmbH
  Dr.-Leo-Ritter-Straße 9 – 93049 Regensburg
  Handelsregister: HRB 8932, Amtsgericht Regensburg - Geschäftsführer: 
Ulrike Döhler, Manuela Kluger



More information about the Binutils mailing list