gold patch committed: Check IOV_MAX
Ian Lance Taylor
iant@google.com
Wed Mar 9 01:55:00 GMT 2011
This gold patch limits the number of entries passed to readv to IOV_MAX.
Apparently Solaris has a limit of 16, and gold was using more.
Committed to mainline and 2.21 branch.
Ian
2011-03-08 Ian Lance Taylor <iant@google.com>
PR gold/12525
* fileread.cc: #include <climits>.
(GOLD_IOV_MAX): Define.
(File_read::read_multiple): Limit number of entries by iov_max.
* fileread.h (class File_read): Always set max_readv_entries to
128.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 2609 bytes
Desc: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20110309/47285a28/attachment.bin>
More information about the Binutils
mailing list