This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: Size of long in x64 Windows based binutils?
- From: Mayank Kumar <mayank at microsoft dot com>
- To: Nick Clifton <nickc at redhat dot com>, Jerker Bäck <jerker dot back at telia dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Fri, 7 Sep 2007 23:43:31 +0800
- Subject: RE: Size of long in x64 Windows based binutils?
- Accept-language: en-US
- Acceptlanguage: en-US
- References: <004201c7efcb$9a711410$cf533c30$@back@telia.com> <46E1647B.4010902@redhat.com>
On similar lines, I want to know if there is a 64 bit working implementation of binutils for interix. I mean has anybody tried to port or ported successfully a 64 bit implementation of binutils on Interix.
Thanks
Mayank
-----Original Message-----
From: binutils-owner@sourceware.org [mailto:binutils-owner@sourceware.org] On Behalf Of Nick Clifton
Sent: Friday, September 07, 2007 8:17 PM
To: Jerker Bäck
Cc: binutils@sourceware.org
Subject: Re: Size of long in x64 Windows based binutils?
Hi Jerker,
> I wonder how you treat the long type in 64bit binutils and keep
> compatibility between Windows-based and unix-based environments. Size of
> long is 4 in Windows (LLP64 model) and 8 for systems with LP64. Interix is
> Windows-based but use the LP64 model. Since longs in official structures
> regarding PE are 32bit, fatal mistakes can easily happen if you are on a
> LP64 system. Is this taken care of?
It should be.
The configure file in the bfd/ directory should take of detecting if long long
can be used and the PE data structures are all defined in terms of a fixed
number of bytes. (See include/coff/external.h).
Cheers
Nick