Avoid ELF lookup race.
commit7b35a400cff11aa557b93c603fd8e7e0f74204a5
authorUlrich Drepper <drepper@redhat.com>
Tue, 15 Dec 2009 20:32:27 +0000 (15 12:32 -0800)
committerPetr Baudis <pasky@ucw.cz>
Mon, 18 Jan 2010 16:56:49 +0000 (18 17:56 +0100)
tree084e612f48fe3dee9846c56609d741b2516d95ba
parenta4b737aa083bd422b15f6dc04b4ea35d18b111e9
Avoid ELF lookup race.

On some architectures the update of the l_used field in the lookup
functions races with setting the other bits in the bitfield.  Simply
avoid this and optimize use of l_used in general.

(cherry picked from commit 2af6396817fb9df98e63de75dd59fd999ee9f1d0)
ChangeLog
elf/dl-lookup.c
elf/dl-object.c
include/link.h