2015-08-13 10:37:47 +00:00
|
|
|
ifeq ($(subdir),csu)
|
2024-02-26 14:37:03 +00:00
|
|
|
gen-as-const-headers += cpu-features-offsets.sym features-offsets.sym
|
2015-08-13 10:37:47 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(subdir),elf)
|
2020-12-25 15:30:46 +00:00
|
|
|
sysdep_routines += get-cpuid-feature-leaf
|
2015-08-13 10:37:47 +00:00
|
|
|
sysdep-dl-routines += dl-get-cpu-features
|
2024-01-10 16:48:47 +00:00
|
|
|
sysdep_headers += \
|
|
|
|
bits/platform/features.h \
|
|
|
|
bits/platform/x86.h \
|
|
|
|
sys/platform/x86.h \
|
|
|
|
# sysdep_headers
|
2015-08-13 10:37:47 +00:00
|
|
|
|
2022-01-14 19:16:05 +00:00
|
|
|
CFLAGS-dl-get-cpu-features.os += $(rtld-early-cflags)
|
2021-03-15 14:54:45 +00:00
|
|
|
CFLAGS-get-cpuid-feature-leaf.o += $(no-stack-protector)
|
|
|
|
|
2023-12-07 17:00:11 +00:00
|
|
|
tests += \
|
|
|
|
tst-cpu-features-cpuinfo \
|
|
|
|
tst-cpu-features-cpuinfo-static \
|
|
|
|
tst-cpu-features-supports \
|
|
|
|
tst-cpu-features-supports-static \
|
2024-02-15 19:19:56 +00:00
|
|
|
tst-get-cpu-features \
|
|
|
|
tst-get-cpu-features-static \
|
2023-12-06 13:24:01 +00:00
|
|
|
tst-hwcap-tunables \
|
2023-12-07 17:00:11 +00:00
|
|
|
# tests
|
|
|
|
tests-static += \
|
|
|
|
tst-cpu-features-cpuinfo-static \
|
|
|
|
tst-cpu-features-supports-static \
|
2024-02-15 19:19:56 +00:00
|
|
|
tst-get-cpu-features-static \
|
2023-12-07 17:00:11 +00:00
|
|
|
# tests-static
|
2021-01-12 22:41:10 +00:00
|
|
|
ifeq (yes,$(have-ifunc))
|
2021-03-24 00:10:38 +00:00
|
|
|
ifeq (yes,$(have-gcc-ifunc))
|
2021-01-12 22:41:10 +00:00
|
|
|
tests += \
|
|
|
|
tst-ifunc-isa-1 \
|
2023-12-07 17:00:11 +00:00
|
|
|
tst-ifunc-isa-1-static \
|
|
|
|
# tests
|
2021-07-23 08:27:56 +00:00
|
|
|
tests-static += \
|
2023-12-07 17:00:11 +00:00
|
|
|
tst-ifunc-isa-1-static \
|
|
|
|
# tests-static
|
2021-08-30 20:59:33 +00:00
|
|
|
test-xfail-tst-ifunc-isa-1 = $(with-lld)
|
|
|
|
test-xfail-tst-ifunc-isa-1-static = $(with-lld)
|
2021-07-23 08:27:56 +00:00
|
|
|
tests += \
|
2021-01-12 22:41:10 +00:00
|
|
|
tst-ifunc-isa-2 \
|
2023-12-07 17:00:11 +00:00
|
|
|
tst-ifunc-isa-2-static \
|
|
|
|
# tests
|
2021-01-12 22:41:10 +00:00
|
|
|
tests-static += \
|
2023-12-07 17:00:11 +00:00
|
|
|
tst-ifunc-isa-2-static \
|
|
|
|
# tests-static
|
2021-08-30 20:59:33 +00:00
|
|
|
test-xfail-tst-ifunc-isa-2 = $(with-lld)
|
|
|
|
test-xfail-tst-ifunc-isa-2-static = $(with-lld)
|
2021-01-12 22:41:10 +00:00
|
|
|
endif
|
2021-03-24 00:10:38 +00:00
|
|
|
endif
|
2020-10-09 13:06:56 +00:00
|
|
|
ifeq (yes,$(enable-x86-isa-level))
|
2023-12-07 17:00:11 +00:00
|
|
|
tests += \
|
|
|
|
tst-isa-level-1 \
|
|
|
|
# tests
|
|
|
|
modules-names += \
|
|
|
|
tst-isa-level-mod-1-baseline \
|
|
|
|
tst-isa-level-mod-1-v2 \
|
|
|
|
tst-isa-level-mod-1-v3 \
|
|
|
|
tst-isa-level-mod-1-v4 \
|
|
|
|
# modules-names
|
2020-10-09 13:06:56 +00:00
|
|
|
|
|
|
|
# X86 ISA level baseline
|
|
|
|
CFLAGS-tst-isa-level-mod-1-baseline.c += -DINCLUDE_X86_ISA_LEVEL \
|
|
|
|
-DISA_LEVEL=0x1 \
|
|
|
|
-march=x86-64
|
|
|
|
# X86 ISA level v2
|
|
|
|
CFLAGS-tst-isa-level-mod-1-v2.c += -DINCLUDE_X86_ISA_LEVEL \
|
|
|
|
-DISA_LEVEL=0x3 \
|
|
|
|
-march=x86-64
|
|
|
|
# X86 ISA level v3
|
|
|
|
CFLAGS-tst-isa-level-mod-1-v3.c += -DINCLUDE_X86_ISA_LEVEL \
|
|
|
|
-DISA_LEVEL=0x7 \
|
|
|
|
-march=x86-64
|
|
|
|
# X86 ISA level v4
|
|
|
|
CFLAGS-tst-isa-level-mod-1-v4.c += -DINCLUDE_X86_ISA_LEVEL \
|
|
|
|
-DISA_LEVEL=0xf \
|
|
|
|
-march=x86-64
|
|
|
|
|
|
|
|
$(objpfx)tst-isa-level-1.out: $(objpfx)tst-isa-level-mod-1-baseline.so \
|
|
|
|
$(objpfx)tst-isa-level-mod-1-v2.so \
|
|
|
|
$(objpfx)tst-isa-level-mod-1-v3.so \
|
|
|
|
$(objpfx)tst-isa-level-mod-1-v4.so
|
|
|
|
endif
|
2021-01-12 22:41:10 +00:00
|
|
|
tst-ifunc-isa-2-ENV = GLIBC_TUNABLES=glibc.cpu.hwcaps=-SSE4_2,-AVX,-AVX2,-AVX512F
|
|
|
|
tst-ifunc-isa-2-static-ENV = $(tst-ifunc-isa-2-ENV)
|
2023-12-06 13:24:01 +00:00
|
|
|
tst-hwcap-tunables-ARGS = -- $(host-test-program-cmd)
|
2024-02-26 14:37:03 +00:00
|
|
|
|
|
|
|
CFLAGS-tst-gnu2-tls2.c += -msse
|
|
|
|
CFLAGS-tst-gnu2-tls2mod0.c += -msse2 -mtune=haswell
|
|
|
|
CFLAGS-tst-gnu2-tls2mod1.c += -msse2 -mtune=haswell
|
|
|
|
CFLAGS-tst-gnu2-tls2mod2.c += -msse2 -mtune=haswell
|
2021-01-12 22:41:10 +00:00
|
|
|
endif
|
x86: Use pad in pthread_unwind_buf to preserve shadow stack register
The pad array in struct pthread_unwind_buf is used by setjmp to save
shadow stack register. We assert that size of struct pthread_unwind_buf
is no less than offset of shadow stack pointer + shadow stack pointer
size.
Since functions, like LIBC_START_MAIN, START_THREAD_DEFN as well as
these with thread cancellation, call setjmp, but never return after
__libc_unwind_longjmp, __libc_unwind_longjmp, which is defined as
__libc_longjmp on x86, doesn't need to restore shadow stack register.
__libc_longjmp, which is a private interface for thread cancellation
implementation in libpthread, is changed to call __longjmp_cancel,
instead of __longjmp. __longjmp_cancel is a new internal function
in libc, which is similar to __longjmp, but doesn't restore shadow
stack register.
The compatibility longjmp and siglongjmp in libpthread.so are changed
to call __libc_siglongjmp, instead of __libc_longjmp, so that they will
restore shadow stack register.
Tested with build-many-glibcs.py.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
* nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
handlers after setjmp.
* setjmp/longjmp.c (__libc_longjmp): Don't define alias if
defined.
* sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
<libc-pointer-arith.h>.
(_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
(_JUMP_BUF_SIGSET_NSIG): Changed to 96.
(_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
_JUMP_BUF_SIGSET_BITS_PER_WORD.
* sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
* sysdeps/x86/__longjmp_cancel.S: New file.
* sysdeps/x86/longjmp.c: Likewise.
* sysdeps/x86/nptl/pt-longjmp.c: Likewise.
2018-05-02 13:17:20 +00:00
|
|
|
|
2020-09-22 17:07:48 +00:00
|
|
|
ifeq ($(subdir),math)
|
2023-12-07 17:00:11 +00:00
|
|
|
tests += \
|
|
|
|
tst-ldbl-nonnormal-printf \
|
|
|
|
# tests
|
2020-09-22 17:07:48 +00:00
|
|
|
endif # $(subdir) == math
|
|
|
|
|
x86: Use pad in pthread_unwind_buf to preserve shadow stack register
The pad array in struct pthread_unwind_buf is used by setjmp to save
shadow stack register. We assert that size of struct pthread_unwind_buf
is no less than offset of shadow stack pointer + shadow stack pointer
size.
Since functions, like LIBC_START_MAIN, START_THREAD_DEFN as well as
these with thread cancellation, call setjmp, but never return after
__libc_unwind_longjmp, __libc_unwind_longjmp, which is defined as
__libc_longjmp on x86, doesn't need to restore shadow stack register.
__libc_longjmp, which is a private interface for thread cancellation
implementation in libpthread, is changed to call __longjmp_cancel,
instead of __longjmp. __longjmp_cancel is a new internal function
in libc, which is similar to __longjmp, but doesn't restore shadow
stack register.
The compatibility longjmp and siglongjmp in libpthread.so are changed
to call __libc_siglongjmp, instead of __libc_longjmp, so that they will
restore shadow stack register.
Tested with build-many-glibcs.py.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
* nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
handlers after setjmp.
* setjmp/longjmp.c (__libc_longjmp): Don't define alias if
defined.
* sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
<libc-pointer-arith.h>.
(_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
(_JUMP_BUF_SIGSET_NSIG): Changed to 96.
(_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
_JUMP_BUF_SIGSET_BITS_PER_WORD.
* sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
* sysdeps/x86/__longjmp_cancel.S: New file.
* sysdeps/x86/longjmp.c: Likewise.
* sysdeps/x86/nptl/pt-longjmp.c: Likewise.
2018-05-02 13:17:20 +00:00
|
|
|
ifeq ($(subdir),setjmp)
|
2018-07-14 12:59:29 +00:00
|
|
|
gen-as-const-headers += jmp_buf-ssp.sym
|
x86: Use pad in pthread_unwind_buf to preserve shadow stack register
The pad array in struct pthread_unwind_buf is used by setjmp to save
shadow stack register. We assert that size of struct pthread_unwind_buf
is no less than offset of shadow stack pointer + shadow stack pointer
size.
Since functions, like LIBC_START_MAIN, START_THREAD_DEFN as well as
these with thread cancellation, call setjmp, but never return after
__libc_unwind_longjmp, __libc_unwind_longjmp, which is defined as
__libc_longjmp on x86, doesn't need to restore shadow stack register.
__libc_longjmp, which is a private interface for thread cancellation
implementation in libpthread, is changed to call __longjmp_cancel,
instead of __longjmp. __longjmp_cancel is a new internal function
in libc, which is similar to __longjmp, but doesn't restore shadow
stack register.
The compatibility longjmp and siglongjmp in libpthread.so are changed
to call __libc_siglongjmp, instead of __libc_longjmp, so that they will
restore shadow stack register.
Tested with build-many-glibcs.py.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
* nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
handlers after setjmp.
* setjmp/longjmp.c (__libc_longjmp): Don't define alias if
defined.
* sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
<libc-pointer-arith.h>.
(_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
(_JUMP_BUF_SIGSET_NSIG): Changed to 96.
(_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
_JUMP_BUF_SIGSET_BITS_PER_WORD.
* sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
* sysdeps/x86/__longjmp_cancel.S: New file.
* sysdeps/x86/longjmp.c: Likewise.
* sysdeps/x86/nptl/pt-longjmp.c: Likewise.
2018-05-02 13:17:20 +00:00
|
|
|
sysdep_routines += __longjmp_cancel
|
2021-01-13 03:00:13 +00:00
|
|
|
endif
|
x86: Support IBT and SHSTK in Intel CET [BZ #21598]
Intel Control-flow Enforcement Technology (CET) instructions:
https://software.intel.com/sites/default/files/managed/4d/2a/control-flow-en
forcement-technology-preview.pdf
includes Indirect Branch Tracking (IBT) and Shadow Stack (SHSTK).
GNU_PROPERTY_X86_FEATURE_1_IBT is added to GNU program property to
indicate that all executable sections are compatible with IBT when
ENDBR instruction starts each valid target where an indirect branch
instruction can land. Linker sets GNU_PROPERTY_X86_FEATURE_1_IBT on
output only if it is set on all relocatable inputs.
On an IBT capable processor, the following steps should be taken:
1. When loading an executable without an interpreter, enable IBT and
lock IBT if GNU_PROPERTY_X86_FEATURE_1_IBT is set on the executable.
2. When loading an executable with an interpreter, enable IBT if
GNU_PROPERTY_X86_FEATURE_1_IBT is set on the interpreter.
a. If GNU_PROPERTY_X86_FEATURE_1_IBT isn't set on the executable,
disable IBT.
b. Lock IBT.
3. If IBT is enabled, when loading a shared object without
GNU_PROPERTY_X86_FEATURE_1_IBT:
a. If legacy interwork is allowed, then mark all pages in executable
PT_LOAD segments in legacy code page bitmap. Failure of legacy code
page bitmap allocation causes an error.
b. If legacy interwork isn't allowed, it causes an error.
GNU_PROPERTY_X86_FEATURE_1_SHSTK is added to GNU program property to
indicate that all executable sections are compatible with SHSTK where
return address popped from shadow stack always matches return address
popped from normal stack. Linker sets GNU_PROPERTY_X86_FEATURE_1_SHSTK
on output only if it is set on all relocatable inputs.
On a SHSTK capable processor, the following steps should be taken:
1. When loading an executable without an interpreter, enable SHSTK if
GNU_PROPERTY_X86_FEATURE_1_SHSTK is set on the executable.
2. When loading an executable with an interpreter, enable SHSTK if
GNU_PROPERTY_X86_FEATURE_1_SHSTK is set on interpreter.
a. If GNU_PROPERTY_X86_FEATURE_1_SHSTK isn't set on the executable
or any shared objects loaded via the DT_NEEDED tag, disable SHSTK.
b. Otherwise lock SHSTK.
3. After SHSTK is enabled, it is an error to load a shared object
without GNU_PROPERTY_X86_FEATURE_1_SHSTK.
To enable CET support in glibc, --enable-cet is required to configure
glibc. When CET is enabled, both compiler and assembler must support
CET. Otherwise, it is a configure-time error.
To support CET run-time control,
1. _dl_x86_feature_1 is added to the writable ld.so namespace to indicate
if IBT or SHSTK are enabled at run-time. It should be initialized by
init_cpu_features.
2. For dynamic executables:
a. A l_cet field is added to struct link_map to indicate if IBT or
SHSTK is enabled in an ELF module. _dl_process_pt_note or
_rtld_process_pt_note is called to process PT_NOTE segment for
GNU program property and set l_cet.
b. _dl_open_check is added to check IBT and SHSTK compatibilty when
dlopening a shared object.
3. Replace i386 _dl_runtime_resolve and _dl_runtime_profile with
_dl_runtime_resolve_shstk and _dl_runtime_profile_shstk, respectively if
SHSTK is enabled.
CET run-time control can be changed via GLIBC_TUNABLES with
$ export GLIBC_TUNABLES=glibc.tune.x86_shstk=[permissive|on|off]
$ export GLIBC_TUNABLES=glibc.tune.x86_ibt=[permissive|on|off]
1. permissive: SHSTK is disabled when dlopening a legacy ELF module.
2. on: IBT or SHSTK are always enabled, regardless if there are IBT or
SHSTK bits in GNU program property.
3. off: IBT or SHSTK are always disabled, regardless if there are IBT or
SHSTK bits in GNU program property.
<cet.h> from CET-enabled GCC is automatically included by assembly codes
to add GNU_PROPERTY_X86_FEATURE_1_IBT and GNU_PROPERTY_X86_FEATURE_1_SHSTK
to GNU program property. _CET_ENDBR is added at the entrance of all
assembly functions whose address may be taken. _CET_NOTRACK is used to
insert NOTRACK prefix with indirect jump table to support IBT. It is
defined as notrack when _CET_NOTRACK is defined in <cet.h>.
[BZ #21598]
* configure.ac: Add --enable-cet.
* configure: Regenerated.
* elf/Makefille (all-built-dso): Add a comment.
* elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
Include <dl-prop.h>.
(_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
segment.
* elf/dl-open.c: Include <dl-prop.h>.
(dl_open_worker): Call _dl_open_check.
* elf/rtld.c: Include <dl-prop.h>.
(dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
_rtld_main_check.
* sysdeps/generic/dl-prop.h: New file.
* sysdeps/i386/dl-cet.c: Likewise.
* sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
* sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
* sysdeps/x86/cet-tunables.h: Likewise.
* sysdeps/x86/check-cet.awk: Likewise.
* sysdeps/x86/configure: Likewise.
* sysdeps/x86/configure.ac: Likewise.
* sysdeps/x86/dl-cet.c: Likewise.
* sysdeps/x86/dl-procruntime.c: Likewise.
* sysdeps/x86/dl-prop.h: Likewise.
* sysdeps/x86/libc-start.h: Likewise.
* sysdeps/x86/link_map.h: Likewise.
* sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
_CET_ENDBR.
(_dl_runtime_profile): Likewise.
(_dl_runtime_resolve_shstk): New.
(_dl_runtime_profile_shstk): Likewise.
* sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
if CET is enabled.
(CFLAGS-.o): Add -fcf-protection if CET is enabled.
(CFLAGS-.os): Likewise.
(CFLAGS-.op): Likewise.
(CFLAGS-.oS): Likewise.
(asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
is enabled.
(tests-special): Add $(objpfx)check-cet.out.
(cet-built-dso): New.
(+$(cet-built-dso:=.note)): Likewise.
(common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
($(objpfx)check-cet.out): New.
(generated): Add check-cet.out.
* sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
<cet-tunables.h>.
(TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
(TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
(init_cpu_features): Call get_cet_status to check CET status
and update dl_x86_feature_1 with CET status. Call
TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
(set_x86_shstk). Disable and lock CET in libc.a.
* sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
(TUNABLE_CALLBACK (set_x86_ibt)): New function.
(TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
* sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
(_CET_ENDBR): Define if not defined.
(ENTRY): Add _CET_ENDBR.
* sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
x86_shstk.
* sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
_CET_ENDBR.
(_dl_runtime_profile): Likewise.
2018-07-16 21:08:15 +00:00
|
|
|
|
2020-07-11 16:04:34 +00:00
|
|
|
ifeq ($(subdir),string)
|
|
|
|
sysdep_routines += cacheinfo
|
2021-02-23 14:33:10 +00:00
|
|
|
|
|
|
|
tests += \
|
|
|
|
tst-memchr-rtm \
|
|
|
|
tst-memcmp-rtm \
|
|
|
|
tst-memmove-rtm \
|
|
|
|
tst-memrchr-rtm \
|
|
|
|
tst-memset-rtm \
|
2022-07-12 19:29:10 +00:00
|
|
|
tst-strcasecmp-rtm \
|
2021-02-23 14:33:10 +00:00
|
|
|
tst-strchr-rtm \
|
2022-07-12 19:29:10 +00:00
|
|
|
tst-strcmp-rtm \
|
2021-02-23 14:33:10 +00:00
|
|
|
tst-strcpy-rtm \
|
|
|
|
tst-strlen-rtm \
|
2022-07-12 19:29:10 +00:00
|
|
|
tst-strncasecmp-rtm \
|
2021-02-23 14:33:10 +00:00
|
|
|
tst-strncmp-rtm \
|
2022-02-18 20:19:15 +00:00
|
|
|
tst-strrchr-rtm \
|
2022-07-12 19:29:10 +00:00
|
|
|
tst-wcscmp-rtm \
|
2022-02-18 20:19:15 +00:00
|
|
|
tst-wcsncmp-rtm \
|
|
|
|
# tests
|
2021-02-23 14:33:10 +00:00
|
|
|
|
|
|
|
CFLAGS-tst-memchr-rtm.c += -mrtm
|
|
|
|
CFLAGS-tst-memcmp-rtm.c += -mrtm
|
|
|
|
CFLAGS-tst-memmove-rtm.c += -mrtm
|
|
|
|
CFLAGS-tst-memrchr-rtm.c += -mrtm
|
|
|
|
CFLAGS-tst-memset-rtm.c += -mrtm
|
2022-07-12 19:29:10 +00:00
|
|
|
CFLAGS-tst-strcasecmp-rtm.c += -mrtm
|
2021-02-23 14:33:10 +00:00
|
|
|
CFLAGS-tst-strchr-rtm.c += -mrtm
|
2022-07-12 19:29:10 +00:00
|
|
|
CFLAGS-tst-strcmp-rtm.c += -mrtm
|
2021-02-23 14:33:10 +00:00
|
|
|
CFLAGS-tst-strcpy-rtm.c += -mrtm
|
|
|
|
CFLAGS-tst-strlen-rtm.c += -mrtm
|
2022-07-12 19:29:10 +00:00
|
|
|
CFLAGS-tst-strncasecmp-rtm.c += -mrtm -Wno-error
|
2022-02-15 14:18:15 +00:00
|
|
|
CFLAGS-tst-strncmp-rtm.c += -mrtm -Wno-error
|
2021-02-23 14:33:10 +00:00
|
|
|
CFLAGS-tst-strrchr-rtm.c += -mrtm
|
2022-07-12 19:29:10 +00:00
|
|
|
CFLAGS-tst-wcscmp-rtm.c += -mrtm
|
2022-02-18 20:19:15 +00:00
|
|
|
CFLAGS-tst-wcsncmp-rtm.c += -mrtm -Wno-error
|
2020-07-11 16:04:34 +00:00
|
|
|
endif
|
|
|
|
|
2021-03-06 18:19:32 +00:00
|
|
|
ifeq ($(subdir),posix)
|
|
|
|
tests += \
|
|
|
|
tst-sysconf-cache-linesize \
|
2023-12-07 17:00:11 +00:00
|
|
|
tst-sysconf-cache-linesize-static \
|
|
|
|
# tests
|
2021-03-06 18:19:32 +00:00
|
|
|
tests-static += \
|
2023-12-07 17:00:11 +00:00
|
|
|
tst-sysconf-cache-linesize-static \
|
|
|
|
# tests-static
|
2021-03-06 18:19:32 +00:00
|
|
|
endif
|