Re: [PATCH] loader: support loading large files (>=2GB)

2022-06-01 Thread Alistair Francis
On Tue, May 31, 2022 at 12:59 AM Philippe Mathieu-Daudé via wrote: > > Hi Peter, > > On 28/4/22 01:07, Peter Collingbourne wrote: > > Currently the loader uses int as the return type for various APIs > > that deal with file sizes, which leads to an error if the file > > size is >=2GB, as it ends u

Re: [PATCH] loader: support loading large files (>=2GB)

2022-05-30 Thread Philippe Mathieu-Daudé via
Hi Peter, On 28/4/22 01:07, Peter Collingbourne wrote: Currently the loader uses int as the return type for various APIs that deal with file sizes, which leads to an error if the file size is >=2GB, as it ends up being interpreted as a negative error code. Furthermore, we do not tolerate short r

Re: [PATCH] loader: support loading large files (>=2GB)

2022-04-29 Thread Richard Henderson
On 4/27/22 16:07, Peter Collingbourne wrote: Currently the loader uses int as the return type for various APIs that deal with file sizes, which leads to an error if the file size is >=2GB, as it ends up being interpreted as a negative error code. Furthermore, we do not tolerate short reads, which

[PATCH] loader: support loading large files (>=2GB)

2022-04-27 Thread Peter Collingbourne
Currently the loader uses int as the return type for various APIs that deal with file sizes, which leads to an error if the file size is >=2GB, as it ends up being interpreted as a negative error code. Furthermore, we do not tolerate short reads, which are possible at least on Linux when attempting