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: binutils on mingw/mingw64 large files (>2GB) support


Hi Vladimir,

This patch just reports about the problem.

True.


I see the following solutions:
1. add re-definitions for off_t, stat, fstat, etc. in
all places right after <sys/stat.h>, may be special "include"
file;
2. replace off_t, stat, fstat with bn_off_t, bn_stat,
bn_fstat (bn - means binutils) in all sources and "define"
them as stat64, fstat64 in config.h (or some another include file)
if we are on mingw, else stay with (stat, fstat);
3. wait for _FILE_OFFSET_BITS support.

Well I would opt for 3. :-) Not just because it is the simplest from my point of view, but also because it is the correct thing to do. Trying to implement our version of large file support for mingw is just silly, and very likely to generate more errors. It will be better to wait for the official mingw developers to add the necessary feature.


Cheers
  Nick



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