1 # The mpn functions need a #define for asm syntax flavor.
2 # Every i386 port in use uses gas syntax (I think).
3 asm-CPPFLAGS
+= -DGAS_SYNTAX
5 # The i386 `long double' is a distinct type we support.
9 # These functions change the rounding mode internally and need to
10 # update both the SSE2 rounding mode and the 387 rounding mode. See
11 # the handling of MATH_SET_BOTH_ROUNDING_MODES in
12 # sysdeps/i386/fpu/fenv_private.h.
13 CFLAGS-e_gamma_r.c
+= -DMATH_SET_BOTH_ROUNDING_MODES
16 ifeq ($(subdir
),string
)
17 sysdep_routines
+= cacheinfo
21 sysdep_routines
+= i386-mcount
25 CFLAGS-rtld.c
+= -Wno-uninitialized
-Wno-unused
26 CFLAGS-dl-load.c
+= -Wno-unused
27 CFLAGS-dl-reloc.c
+= -Wno-unused
31 gen-as-const-headers
+= link-defines.sym
33 stack-align-test-flags
+= -malign-double
37 sysdep-dl-routines
+= tlsdesc dl-tlsdesc
40 modules-names
+= tst-auditmod3a tst-auditmod3b
42 $(objpfx
)tst-audit3
: $(objpfx
)tst-auditmod3a.so
43 $(objpfx
)tst-audit3.out
: $(objpfx
)tst-auditmod3b.so
44 tst-audit3-ENV
= LD_AUDIT
=$(objpfx
)tst-auditmod3b.so
48 gen-as-const-headers
+= tlsdesc.sym
51 # Make sure no code in ld.so uses mm/xmm/ymm/zmm registers on i386 since
52 # the first 3 mm/xmm/ymm/zmm registers are used to pass vector parameters
53 # which must be preserved.
54 # With SSE disabled, ensure -fpmath is not set to use sse either.
55 rtld-CFLAGS
+= -mno-sse
-mno-mmx
-mfpmath
=387
57 CFLAGS-.os
+= $(if
$(filter $(@F
),$(patsubst %,%.os
,$(all-rtld-routines
))),\
60 tests-special
+= $(objpfx
)tst-ld-sse-use.out
61 $(objpfx
)tst-ld-sse-use.out
: ..
/sysdeps
/i386
/tst-ld-sse-use.sh
$(objpfx
)ld.so
62 @echo
"Checking ld.so for SSE register use. This will take a few seconds..."
63 $(BASH
) $< $(objpfx
) '$(NM)' '$(OBJDUMP)' '$(READELF)' > $@
; \
66 CFLAGS-.os
+= $(if
$(filter rtld-
%.os
,$(@F
)), $(rtld-CFLAGS
))