Date: Sat, 13 Mar 2010 16:15:15 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r205123 - projects/altix/sys/conf Message-ID: <201003131615.o2DGFFI3068890@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marcel Date: Sat Mar 13 16:15:15 2010 New Revision: 205123 URL: http://svn.freebsd.org/changeset/base/205123 Log: Build kernel modules as relocatable objects. They are much more easy to work with in a NUMA environment. This commit effectively breaks module support. The breakage is fixed when the loader and kernel know how to load and relocate the object files on ia64. Modified: projects/altix/sys/conf/kmod.mk Modified: projects/altix/sys/conf/kmod.mk ============================================================================== --- projects/altix/sys/conf/kmod.mk Sat Mar 13 15:10:07 2010 (r205122) +++ projects/altix/sys/conf/kmod.mk Sat Mar 13 16:15:15 2010 (r205123) @@ -178,7 +178,8 @@ ${PROG}.symbols: ${FULLPROG} ${OBJCOPY} --only-keep-debug ${FULLPROG} ${.TARGET} .endif -.if ${MACHINE_ARCH} != amd64 && ${MACHINE_ARCH} != mips +.if ${MACHINE_ARCH} != amd64 && ${MACHINE_ARCH} != ia64 && \ + ${MACHINE_ARCH} != mips ${FULLPROG}: ${KMOD}.kld ${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} ${KMOD}.kld .if !defined(DEBUG_FLAGS) @@ -191,7 +192,8 @@ EXPORT_SYMS?= NO CLEANFILES+= export_syms .endif -.if ${MACHINE_ARCH} != amd64 && ${MACHINE_ARCH} != mips +.if ${MACHINE_ARCH} != amd64 && ${MACHINE_ARCH} != ia64 && \ + ${MACHINE_ARCH} != mips ${KMOD}.kld: ${OBJS} .else ${FULLPROG}: ${OBJS} @@ -211,7 +213,8 @@ ${FULLPROG}: ${OBJS} .endif .endif .if !defined(DEBUG_FLAGS) && \ - (${MACHINE_ARCH} == amd64 || ${MACHINE_ARCH} == mips) + (${MACHINE_ARCH} == amd64 || ${MACHINE_ARCH} == ia64 || \ + ${MACHINE_ARCH} == mips) ${OBJCOPY} --strip-debug ${.TARGET} .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003131615.o2DGFFI3068890>