Size of long in x64 Windows based binutils?

Jerker Bäck jerker.back@telia.com
Wed Sep 5 14:47:00 GMT 2007


Greetings all,
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?

Thanks
Jerker Bäck



More information about the Binutils mailing list