libm: fix undefined __isinff / __isinfl symbol references

Those symbols are not satisfied by any code or dependency of libm. As
result calling cprojf function will always crash on Genode. This crash
can be turned into link time error by adding --no-undefined to LD_OPT.

This patch provides the missing symbols by including isninf.c in libm
build.

Fixes #4299
This commit is contained in:
Piotr Tworek 2021-10-14 23:09:53 +02:00 committed by Christian Helmuth
parent c38c2a6455
commit a10903a197

View File

@ -35,6 +35,9 @@ CC_WARN =
SRC_C = $(wildcard $(LIBM_DIR)/src/*.c) \
$(wildcard $(LIBM_DIR)/bsdsrc/*.c)
# Provides __isinff and __isinfl used by lib/msun/src/s_cprojf.c
SRC_C += isinf.c
#
# 128 bit quadruple precision format
#
@ -57,6 +60,7 @@ endif
SRC_C := $(filter-out $(FILTER_OUT),$(notdir $(SRC_C)))
vpath %.c $(LIBC_DIR)/lib/libc/gen/
vpath %.c $(LIBM_DIR)/src
vpath %.c $(LIBM_DIR)/bsdsrc