Index: sys/modules/linux/Makefile =================================================================== --- sys/modules/linux/Makefile +++ sys/modules/linux/Makefile @@ -102,9 +102,10 @@ ${STRIPBIN} -N _binary_linux${SFX}_vdso_so_o_size ${.TARGET} .if ${MACHINE_CPUARCH} == "amd64" -linux${SFX}_support.o: linux${SFX}_assym.h assym.inc +linux${SFX}_support.o: linux${SFX}_support.s linux${SFX}_assym.h assym.inc ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ - ${.IMPSRC} -o ${.TARGET} + ${SRCTOP}/sys/${MACHINE_CPUARCH}/linux${SFX}/linux${SFX}_support.s \ + -o ${.TARGET} .endif linux${SFX}_genassym.o: offset.inc Index: sys/modules/linux64/Makefile =================================================================== --- sys/modules/linux64/Makefile +++ sys/modules/linux64/Makefile @@ -74,9 +74,9 @@ linux_vdso.so.o ${.TARGET} ${STRIPBIN} -N _binary_linux_vdso_so_o_size ${.TARGET} -linux_support.o: assym.inc linux_assym.h +linux_support.o: linux_support.s assym.inc linux_assym.h ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ - ${.IMPSRC} -o ${.TARGET} + ${SRCTOP}/sys/${MACHINE}/linux/linux_support.s -o ${.TARGET} linux_genassym.o: offset.inc ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon ${.IMPSRC}