mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 13:30:06 +00:00
5a664d7ae8
The elision interfaces are closely aligned between the targets that implement them, so declare them in the generic <lowlevellock.h> 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.)
37 lines
958 B
Makefile
37 lines
958 B
Makefile
abi-variants := 32 64-v1 64-v2
|
|
abi-32-condition := __WORDSIZE == 32
|
|
abi-64-v1-condition := __WORDSIZE == 64 && _CALL_ELF != 2
|
|
abi-64-v2-condition := __WORDSIZE == 64 && _CALL_ELF == 2
|
|
|
|
ifeq ($(subdir),rt)
|
|
librt-routines += rt-sysdep
|
|
librt-shared-only-routines += rt-sysdep
|
|
endif
|
|
|
|
ifeq ($(subdir),stdlib)
|
|
gen-as-const-headers += ucontext_i.sym
|
|
endif
|
|
|
|
ifeq ($(subdir),elf)
|
|
ifeq ($(build-shared),yes)
|
|
# This is needed for DSO loading from static binaries.
|
|
sysdep-dl-routines += dl-static
|
|
endif
|
|
# Otherwise tst-tls-dlinfo fails due to tst-tlsmod2.so using static tls.
|
|
LDFLAGS-tst-tlsmod2.so += -Wl,--no-tls-get-addr-optimize
|
|
endif
|
|
|
|
ifeq ($(subdir),misc)
|
|
sysdep_headers += bits/ppc.h
|
|
sysdep_routines += get_timebase_freq
|
|
tests-static += test-gettimebasefreq-static
|
|
tests += $(tests-static)
|
|
tests += test-gettimebasefreq
|
|
tests += test-powerpc-linux-sysconf
|
|
endif
|
|
|
|
ifeq ($(subdir),nptl)
|
|
libpthread-routines += sysdep
|
|
libpthread-shared-only-routines += sysdep
|
|
endif
|