|
Packit |
6c4009 |
# The mpn functions need a #define for asm syntax flavor.
|
|
Packit |
6c4009 |
# Every i386 port in use uses gas syntax (I think).
|
|
Packit |
6c4009 |
asm-CPPFLAGS += -DGAS_SYNTAX
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# The i386 `long double' is a distinct type we support.
|
|
Packit |
6c4009 |
long-double-fcts = yes
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),math)
|
|
Packit |
6c4009 |
# These functions change the rounding mode internally and need to
|
|
Packit |
6c4009 |
# update both the SSE2 rounding mode and the 387 rounding mode. See
|
|
Packit |
6c4009 |
# the handling of MATH_SET_BOTH_ROUNDING_MODES in
|
|
Packit |
6c4009 |
# sysdeps/i386/fpu/fenv_private.h.
|
|
Packit |
6c4009 |
CFLAGS-e_gamma_r.c += -DMATH_SET_BOTH_ROUNDING_MODES
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit Service |
3b0880 |
ifeq ($(subdir),string)
|
|
Packit Service |
3b0880 |
sysdep_routines += cacheinfo
|
|
Packit Service |
3b0880 |
endif
|
|
Packit Service |
3b0880 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),gmon)
|
|
Packit |
6c4009 |
sysdep_routines += i386-mcount
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),elf)
|
|
Packit |
6c4009 |
CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused
|
|
Packit |
6c4009 |
CFLAGS-dl-load.c += -Wno-unused
|
|
Packit |
6c4009 |
CFLAGS-dl-reloc.c += -Wno-unused
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),csu)
|
|
Packit |
6c4009 |
gen-as-const-headers += link-defines.sym
|
|
Packit |
6c4009 |
else
|
|
Packit |
6c4009 |
stack-align-test-flags += -malign-double
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifneq (,$(filter -mno-tls-direct-seg-refs,$(CFLAGS)))
|
|
Packit |
6c4009 |
defines += -DNO_TLS_DIRECT_SEG_REFS
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),elf)
|
|
Packit |
6c4009 |
sysdep-dl-routines += tlsdesc dl-tlsdesc
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
tests += tst-audit3
|
|
Packit |
6c4009 |
modules-names += tst-auditmod3a tst-auditmod3b
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
$(objpfx)tst-audit3: $(objpfx)tst-auditmod3a.so
|
|
Packit |
6c4009 |
$(objpfx)tst-audit3.out: $(objpfx)tst-auditmod3b.so
|
|
Packit |
6c4009 |
tst-audit3-ENV = LD_AUDIT=$(objpfx)tst-auditmod3b.so
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),csu)
|
|
Packit |
6c4009 |
gen-as-const-headers += tlsdesc.sym
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# Make sure no code in ld.so uses mm/xmm/ymm/zmm registers on i386 since
|
|
Packit |
6c4009 |
# the first 3 mm/xmm/ymm/zmm registers are used to pass vector parameters
|
|
Packit |
6c4009 |
# which must be preserved.
|
|
Packit |
6c4009 |
# With SSE disabled, ensure -fpmath is not set to use sse either.
|
|
Packit |
6c4009 |
rtld-CFLAGS += -mno-sse -mno-mmx -mfpmath=387
|
|
Packit |
6c4009 |
ifeq ($(subdir),elf)
|
|
Packit |
6c4009 |
CFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\
|
|
Packit |
6c4009 |
$(rtld-CFLAGS))
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
tests-special += $(objpfx)tst-ld-sse-use.out
|
|
Packit |
6c4009 |
$(objpfx)tst-ld-sse-use.out: ../sysdeps/i386/tst-ld-sse-use.sh $(objpfx)ld.so
|
|
Packit |
6c4009 |
@echo "Checking ld.so for SSE register use. This will take a few seconds..."
|
|
Packit |
6c4009 |
$(BASH) $< $(objpfx) '$(NM)' '$(OBJDUMP)' '$(READELF)' > $@; \
|
|
Packit |
6c4009 |
$(evaluate-test)
|
|
Packit |
6c4009 |
else
|
|
Packit |
6c4009 |
CFLAGS-.os += $(if $(filter rtld-%.os,$(@F)), $(rtld-CFLAGS))
|
|
Packit |
6c4009 |
endif
|