mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 19:00:09 +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.)
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# We don't need any header files.
|
|
abi-includes :=
|
|
|
|
abi-variants := 32 64 x32
|
|
|
|
abi-32-condition := !defined __x86_64__
|
|
abi-64-condition := defined __x86_64__ && defined __LP64__
|
|
abi-x32-condition := defined __x86_64__ && defined __ILP32__
|
|
|
|
ifeq ($(subdir),misc)
|
|
sysdep_headers += sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h sys/io.h
|
|
endif
|
|
|
|
ifeq ($(subdir),nptl)
|
|
CFLAGS-elision-lock.c += -mrtm
|
|
CFLAGS-elision-unlock.c += -mrtm
|
|
CFLAGS-elision-timed.c += -mrtm
|
|
CFLAGS-elision-trylock.c += -mrtm
|
|
endif
|
|
|
|
ifeq ($(subdir),setjmp)
|
|
tests += tst-saved_mask-1
|
|
endif
|
|
|
|
ifneq ($(enable-cet),no)
|
|
ifeq ($(subdir),elf)
|
|
tests += tst-cet-property-1 tst-cet-property-2
|
|
|
|
CFLAGS-tst-cet-property-1.o += -fcf-protection
|
|
ASFLAGS-tst-cet-property-dep-2.o += -fcf-protection
|
|
|
|
$(objpfx)tst-cet-property-2: $(objpfx)tst-cet-property-dep-2.o
|
|
$(objpfx)tst-cet-property-2.out: $(objpfx)tst-cet-property-2 \
|
|
$(objpfx)tst-cet-property-1.out
|
|
env $(run-program-env) $(test-via-rtld-prefix) \
|
|
$(objpfx)tst-cet-property-2 \
|
|
< $(objpfx)tst-cet-property-1.out > $@; \
|
|
$(evaluate-test)
|
|
endif
|
|
|
|
ifeq ($(subdir),posix)
|
|
tests += tst-cet-vfork-1
|
|
CFLAGS-tst-cet-vfork-1.c += -mshstk
|
|
endif
|
|
|
|
ifeq ($(subdir),stdlib)
|
|
tests += tst-cet-setcontext-1
|
|
CFLAGS-tst-cet-setcontext-1.c += -mshstk
|
|
endif
|
|
endif
|