]> git.ipfire.org Git - thirdparty/glibc.git/commit
elf: Simplify software TM implementation in _dl_find_object
authorFlorian Weimer <fweimer@redhat.com>
Mon, 10 Jan 2022 12:31:39 +0000 (13:31 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 10 Jan 2022 12:31:47 +0000 (13:31 +0100)
commite72ef23ee88187284b4b1ca9b2e314e618429d35
tree5666c507dd95ff0899885be083cd871c3a0fb624
parent6b0978c14acc2a6b5f5dbd8e8ef75fddc6656483
elf: Simplify software TM implementation in _dl_find_object

With the current set of fences, the version update at the start
of the TM write operation is redundant, and the version update
at the end does not need to use an atomic read-modify-write
operation.

Also use relaxed MO stores during the dlclose update, and skip any
version changes there.

Suggested-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
elf/dl-find_object.c