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]

RE: Size of long in x64 Windows based binutils?


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


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