|
Packit Service |
82fcde |
# The i387 `long double' is a distinct type we support.
|
|
Packit Service |
82fcde |
long-double-fcts = yes
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ifeq ($(subdir),csu)
|
|
Packit Service |
82fcde |
gen-as-const-headers += link-defines.sym
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ifeq ($(subdir),gmon)
|
|
Packit Service |
82fcde |
sysdep_routines += _mcount
|
|
Packit Service |
82fcde |
# We cannot compile _mcount.S with -pg because that would create
|
|
Packit Service |
82fcde |
# recursive calls when ENTRY is used. Just copy the normal static
|
|
Packit Service |
82fcde |
# object.
|
|
Packit Service |
82fcde |
sysdep_noprof += _mcount
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ifeq ($(subdir),malloc)
|
|
Packit Service |
82fcde |
tests += tst-mallocalign1
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ifeq ($(subdir),string)
|
|
Packit Service |
82fcde |
sysdep_routines += cacheinfo strcasecmp_l-nonascii strncase_l-nonascii
|
|
Packit Service |
82fcde |
gen-as-const-headers += locale-defines.sym
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ifeq ($(subdir),elf)
|
|
Packit Service |
82fcde |
# There is no good reason to use MMX in x86-64 ld.so with GCC.
|
|
Packit Service |
82fcde |
CFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\
|
|
Packit Service |
82fcde |
-mno-mmx)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
sysdep-dl-routines += tlsdesc dl-tlsdesc tls_get_addr
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
tests += ifuncmain8
|
|
Packit Service |
82fcde |
modules-names += ifuncmod8
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)ifuncmain8: $(objpfx)ifuncmod8.so
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
tests += tst-quad1 tst-quad2
|
|
Packit Service |
82fcde |
modules-names += tst-quadmod1 tst-quadmod2
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-quad1: $(objpfx)tst-quadmod1.so
|
|
Packit Service |
82fcde |
$(objpfx)tst-quad2: $(objpfx)tst-quadmod2.so
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
quad-pie-test += tst-quad1pie tst-quad2pie
|
|
Packit Service |
82fcde |
tests += $(quad-pie-test)
|
|
Packit Service |
82fcde |
tests-pie += $(quad-pie-test)
|
|
Packit Service |
82fcde |
test-extras += tst-quadmod1pie tst-quadmod2pie
|
|
Packit Service |
82fcde |
extra-test-objs += tst-quadmod1pie.o tst-quadmod2pie.o
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-quad1pie: $(objpfx)tst-quadmod1pie.o
|
|
Packit Service |
82fcde |
$(objpfx)tst-quad2pie: $(objpfx)tst-quadmod2pie.o
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
CFLAGS-tst-quad1pie.c = $(PIE-ccflag)
|
|
Packit Service |
82fcde |
CFLAGS-tst-quad2pie.c = $(PIE-ccflag)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
tests += tst-x86_64-1
|
|
Packit Service |
82fcde |
modules-names += x86_64/tst-x86_64mod-1
|
|
Packit Service |
82fcde |
LDFLAGS-tst-x86_64mod-1.so = -Wl,-soname,tst-x86_64mod-1.so
|
|
Packit Service |
82fcde |
ifneq (no,$(have-tunables))
|
|
Packit Service |
82fcde |
# Test the state size for XSAVE when XSAVEC is disabled.
|
|
Packit Service |
82fcde |
tst-x86_64-1-ENV = GLIBC_TUNABLES=glibc.tune.hwcaps=-XSAVEC_Usable
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-x86_64-1: $(objpfx)x86_64/tst-x86_64mod-1.so
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ifneq (no,$(have-tunables))
|
|
Packit Service |
82fcde |
tests += tst-platform-1
|
|
Packit Service |
82fcde |
modules-names += tst-platformmod-1 x86_64/tst-platformmod-2
|
|
Packit Service |
82fcde |
CFLAGS-tst-platform-1.c = -mno-avx
|
|
Packit Service |
82fcde |
CFLAGS-tst-platformmod-1.c = -mno-avx
|
|
Packit Service |
82fcde |
CFLAGS-tst-platformmod-2.c = -mno-avx
|
|
Packit Service |
82fcde |
LDFLAGS-tst-platformmod-2.so = -Wl,-soname,tst-platformmod-2.so
|
|
Packit Service |
82fcde |
$(objpfx)tst-platform-1: $(objpfx)tst-platformmod-1.so
|
|
Packit Service |
82fcde |
$(objpfx)tst-platform-1.out: $(objpfx)x86_64/tst-platformmod-2.so
|
|
Packit Service |
82fcde |
# Turn off AVX512F_Usable and AVX2_Usable so that GLRO(dl_platform) is
|
|
Packit Service |
82fcde |
# always set to x86_64.
|
|
Packit Service |
82fcde |
tst-platform-1-ENV = LD_PRELOAD=$(objpfx)\$$PLATFORM/tst-platformmod-2.so \
|
|
Packit Service |
82fcde |
GLIBC_TUNABLES=glibc.tune.hwcaps=-AVX512F_Usable,-AVX2_Usable
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
tests += tst-audit3 tst-audit4 tst-audit5 tst-audit6 tst-audit7 \
|
|
Packit Service |
82fcde |
tst-audit10 tst-sse tst-avx tst-avx512
|
|
Packit Service |
82fcde |
test-extras += tst-audit4-aux tst-audit10-aux \
|
|
Packit Service |
82fcde |
tst-avx-aux tst-avx512-aux
|
|
Packit Service |
82fcde |
extra-test-objs += tst-audit4-aux.o tst-audit10-aux.o \
|
|
Packit Service |
82fcde |
tst-avx-aux.o tst-avx512-aux.o
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ifeq ($(have-insert),yes)
|
|
Packit Service |
82fcde |
tests += tst-split-dynreloc
|
|
Packit Service |
82fcde |
LDFLAGS-tst-split-dynreloc = -Wl,-T,$(..)sysdeps/x86_64/tst-split-dynreloc.lds
|
|
Packit Service |
82fcde |
tst-split-dynreloc-ENV = LD_BIND_NOW=1
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
modules-names += tst-auditmod3a tst-auditmod3b \
|
|
Packit Service |
82fcde |
tst-auditmod4a tst-auditmod4b \
|
|
Packit Service |
82fcde |
tst-auditmod5a tst-auditmod5b \
|
|
Packit Service |
82fcde |
tst-auditmod6a tst-auditmod6b tst-auditmod6c \
|
|
Packit Service |
82fcde |
tst-auditmod7a tst-auditmod7b \
|
|
Packit Service |
82fcde |
tst-auditmod10a tst-auditmod10b \
|
|
Packit Service |
82fcde |
tst-ssemod tst-avxmod tst-avx512mod
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-audit3: $(objpfx)tst-auditmod3a.so
|
|
Packit Service |
82fcde |
$(objpfx)tst-audit3.out: $(objpfx)tst-auditmod3b.so
|
|
Packit Service |
82fcde |
tst-audit3-ENV = LD_AUDIT=$(objpfx)tst-auditmod3b.so
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-audit4: $(objpfx)tst-audit4-aux.o $(objpfx)tst-auditmod4a.so
|
|
Packit Service |
82fcde |
$(objpfx)tst-audit4.out: $(objpfx)tst-auditmod4b.so
|
|
Packit Service |
82fcde |
tst-audit4-ENV = LD_AUDIT=$(objpfx)tst-auditmod4b.so
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-audit5: $(objpfx)tst-auditmod5a.so
|
|
Packit Service |
82fcde |
$(objpfx)tst-audit5.out: $(objpfx)tst-auditmod5b.so
|
|
Packit Service |
82fcde |
tst-audit5-ENV = LD_AUDIT=$(objpfx)tst-auditmod5b.so
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-audit6: $(objpfx)tst-auditmod6a.so
|
|
Packit Service |
82fcde |
$(objpfx)tst-audit6.out: $(objpfx)tst-auditmod6b.so \
|
|
Packit Service |
82fcde |
$(objpfx)tst-auditmod6c.so
|
|
Packit Service |
82fcde |
tst-audit6-ENV = LD_AUDIT=$(objpfx)tst-auditmod6b.so:$(objpfx)tst-auditmod6c.so
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-audit7: $(objpfx)tst-auditmod7a.so
|
|
Packit Service |
82fcde |
$(objpfx)tst-audit7.out: $(objpfx)tst-auditmod7b.so
|
|
Packit Service |
82fcde |
tst-audit7-ENV = LD_AUDIT=$(objpfx)tst-auditmod7b.so
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-audit10: $(objpfx)tst-audit10-aux.o $(objpfx)tst-auditmod10a.so
|
|
Packit Service |
82fcde |
$(objpfx)tst-audit10.out: $(objpfx)tst-auditmod10b.so
|
|
Packit Service |
82fcde |
tst-audit10-ENV = LD_AUDIT=$(objpfx)tst-auditmod10b.so
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)tst-sse: $(objpfx)tst-ssemod.so
|
|
Packit Service |
82fcde |
$(objpfx)tst-avx: $(objpfx)tst-avx-aux.o $(objpfx)tst-avxmod.so
|
|
Packit Service |
82fcde |
$(objpfx)tst-avx512: $(objpfx)tst-avx512-aux.o $(objpfx)tst-avx512mod.so
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
AVX-CFLAGS=-mavx -mno-vzeroupper
|
|
Packit Service |
82fcde |
CFLAGS-tst-audit4-aux.c += $(AVX-CFLAGS)
|
|
Packit Service |
82fcde |
CFLAGS-tst-auditmod4a.c += $(AVX-CFLAGS)
|
|
Packit Service |
82fcde |
CFLAGS-tst-auditmod4b.c += $(AVX-CFLAGS)
|
|
Packit Service |
82fcde |
CFLAGS-tst-auditmod6b.c += $(AVX-CFLAGS)
|
|
Packit Service |
82fcde |
CFLAGS-tst-auditmod6c.c += $(AVX-CFLAGS)
|
|
Packit Service |
82fcde |
CFLAGS-tst-auditmod7b.c += $(AVX-CFLAGS)
|
|
Packit Service |
82fcde |
CFLAGS-tst-avx-aux.c += $(AVX-CFLAGS)
|
|
Packit Service |
82fcde |
CFLAGS-tst-avxmod.c += $(AVX-CFLAGS)
|
|
Packit Service |
82fcde |
ifeq (yes,$(config-cflags-avx512))
|
|
Packit Service |
82fcde |
AVX512-CFLAGS = -mavx512f
|
|
Packit Service |
82fcde |
CFLAGS-tst-audit10-aux.c += $(AVX512-CFLAGS)
|
|
Packit Service |
82fcde |
CFLAGS-tst-auditmod10a.c += $(AVX512-CFLAGS)
|
|
Packit Service |
82fcde |
CFLAGS-tst-auditmod10b.c += $(AVX512-CFLAGS)
|
|
Packit Service |
82fcde |
CFLAGS-tst-avx512-aux.c += $(AVX512-CFLAGS)
|
|
Packit Service |
82fcde |
CFLAGS-tst-avx512mod.c += $(AVX512-CFLAGS)
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
ifeq ($(subdir),csu)
|
|
Packit Service |
82fcde |
gen-as-const-headers += tlsdesc.sym rtld-offsets.sym
|
|
Packit Service |
82fcde |
endif
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)x86_64/tst-x86_64mod-1.os: $(objpfx)tst-x86_64mod-1.os
|
|
Packit Service |
82fcde |
$(make-target-directory)
|
|
Packit Service |
82fcde |
rm -f $@
|
|
Packit Service |
82fcde |
ln $< $@
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
do-tests-clean common-mostlyclean: tst-x86_64-1-clean
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
.PHONY: tst-x86_64-1-clean
|
|
Packit Service |
82fcde |
tst-x86_64-1-clean:
|
|
Packit Service |
82fcde |
-rm -rf $(objpfx)x86_64
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
$(objpfx)x86_64/tst-platformmod-2.os: $(objpfx)tst-platformmod-2.os
|
|
Packit Service |
82fcde |
$(make-target-directory)
|
|
Packit Service |
82fcde |
rm -f $@
|
|
Packit Service |
82fcde |
ln $< $@
|