PATCH: w64 native support
Kai Tietz
Kai.Tietz@onevision.com
Tue Apr 10 17:52:00 GMT 2007
"H. J. Lu" <hjl@lucon.org> wrote on 10.04.2007 19:18:28:
> On Tue, Apr 10, 2007 at 07:00:14PM +0200, Kai Tietz wrote:
> > "H. J. Lu" <hjl@lucon.org> wrote on 10.04.2007 18:12:45:
> >
> > > Have you looked at
> > >
> > > http://sources.redhat.com/bugzilla/show_bug.cgi?id=2737
> > >
> > > Does windres work for x64?
> >
> >
> > I replaced in all structures of windres.h the type "unsigned long" by
> > "unsigned int" for test and patched the dependent files to use not
long
> > type-specifier in printf methods. It works that way, but I am not
certain,
> > if this would break an other target, where "int" isn't 4 bytes long ?
> ^^^^^
> It should be host, not target.
>
> It is better than what we have today. You can add
>
> assert (sizeof (int) == 4);
>
> somewhere.
Ok, I on that.
But I noticed, while bootstrap my patch on it on cygwin, that the
replacement of long to bfd_vma does not work as explected for 32-bit hosts
and using --enable-64-bit-bfd. Gcc claims, that pointer size and integer
size are not fitting.
I think, we have to introduce a type bfd_hostptr_t or something like that
to solve this problem ?
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