I only call ippGetLibVersion in test.c and below shows the flags in Makefile:
TARGET = test.ko test-objs := /nonpic/libippcp.a ccflags-y += $(FLAG) -I$(KERNELDIR)/include -D__KERNEL__ -DMODULE -fno-pic -DEXPORT_SYMTAB -mcmodel=kernel
After excuting 'insmod test.ko', the console outputs:
overflow in relocation type 10 val **** 'test' likely not compiled with -mcmodel=kernel
How do I resolve this issue? Can ippcp be used in linux kernel-mode?