readelf: Call __fsetlocking (stdout, FSETLOCKING_BYCALLER).
authorMark Wielaard <mark@klomp.org>
Sun, 3 Jun 2018 07:28:10 +0000 (09:28 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 4 Jun 2018 16:53:43 +0000 (18:53 +0200)
commite635a79cda230b646f70951d7e1f17325443e84d
tree6c3e16856580dd2febdf42b3d07c56c79dabc721
parent4ebab8e470f38f2203c9adf57000993e318c433f
readelf: Call __fsetlocking (stdout, FSETLOCKING_BYCALLER).

We only call printf on stdout from one thread, so we don't need internal
stdio locking for stdout.

On my machine eu-readelf -N --debug-dump=info libxul.so > /dev/null
goes from 65 seconds to 63 seconds.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/readelf.c