From 5a664d7ae8e42d641a7b4b436987ff67ab483b08 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 23 Feb 2021 14:59:34 +0100 Subject: nptl: Move elision implementations into libc The elision interfaces are closely aligned between the targets that implement them, so declare them in the generic file. Empty .c stubs are provided, so that fewer makefile updates under sysdeps are needed. Also simplify initialization via __libc_early_init. The symbols __lll_clocklock_elision, __lll_lock_elision, __lll_trylock_elision, __lll_unlock_elision, __pthread_force_elision move into libc. For the time being, non-hidden references are used from libpthread to access them, but once that part of libpthread is moved into libc, hidden symbols will be used again. (Hidden references seem desirable to reduce the likelihood of transactions aborts.) --- nptl/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nptl/Makefile') diff --git a/nptl/Makefile b/nptl/Makefile index 4dd9c6a6a8..5f85dd7854 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -30,6 +30,11 @@ extra-libs-others := $(extra-libs) routines = \ alloca_cutoff \ + elision-conf \ + elision-lock \ + elision-timed \ + elision-trylock \ + elision-unlock \ forward \ futex-internal \ libc-cancellation \ -- cgit v1.2.3