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?


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]