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: bfd_size_type to size_t


On Wed, Feb 19, 2020 at 09:14:55AM +0100, Andreas Schwab wrote:
> On Feb 19 2020, Alan Modra wrote:
> 
> > Note that you can't change everything over to size_t: A
> > 32-bit host needs a larger type than size_t to support reading and
> > processing of 64-bit ELF object files.
> 
> But that should use off_t (aka file_ptr), doesn't it?

Many values in a 64-bit ELF object need a 64-bit type.  I'm not too
fussed what 64-bit type is used, but size_t on a 32-bit host can't do
the job.

-- 
Alan Modra
Australia Development Lab, IBM


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