gold patch committed: Check IOV_MAX
Andreas Schwab
schwab@redhat.com
Wed Mar 9 09:37:00 GMT 2011
More information about the Binutils mailing list
Wed Mar 9 09:37:00 GMT 2011
- Previous message (by thread): gold patch committed: Check IOV_MAX
- Next message (by thread): gold patch committed: Check IOV_MAX
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ian Lance Taylor <iant@google.com> writes: > @@ -605,11 +606,22 @@ File_read::do_readv(off_t base, const Re > got, want, static_cast<long long>(base + first_offset)); > } > > +// Portable IOV_MAX. > + > +#if !defined(HAVE_READV) > +#define GOLD_IOV_MAX 1 > +#elif defined(IOV_MAX) > +#define GOLD_IOV_MAX IOV_MAX > +#else > +#define GOLD_IOV_MAX (File_read::max_readv_entries * 2) > +#endif > + > // Read several pieces of data from the file. > > void > File_read::read_multiple(off_t base, const Read_multiple& rm) > { > + static size_t iov_max = GOLD_IOV_MAX; const? Andreas. -- Andreas Schwab, schwab@redhat.com GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E "And now for something completely different."
- Previous message (by thread): gold patch committed: Check IOV_MAX
- Next message (by thread): gold patch committed: Check IOV_MAX
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list