| 1 | diff -u -r ../elfutils-0.166/src/ranlib.c ./src/ranlib.c |
| 2 | --- ../elfutils-0.166/src/ranlib.c 2015-11-27 08:36:29.000000000 -0500 |
| 3 | +++ ./src/ranlib.c 2016-05-04 14:18:56.314550152 -0400 |
| 4 | @@ -138,11 +138,6 @@ |
| 5 | |
| 6 | assert (off + n <= len); |
| 7 | |
| 8 | - /* Tell the kernel we will read all the pages sequentially. */ |
| 9 | - size_t ps = sysconf (_SC_PAGESIZE); |
| 10 | - if (n > 2 * ps) |
| 11 | - posix_madvise (rawfile + (off & ~(ps - 1)), n, POSIX_MADV_SEQUENTIAL); |
| 12 | - |
| 13 | return write_retry (newfd, rawfile + off, n) != (ssize_t) n; |
| 14 | } |
| 15 | |