From owner-freebsd-ports@FreeBSD.ORG Sun Sep 9 23:07:13 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 029C616A419 for ; Sun, 9 Sep 2007 23:07:12 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: from mail5out.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) by mx1.freebsd.org (Postfix) with ESMTP id 6C89C13C461 for ; Sun, 9 Sep 2007 23:07:12 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: by mail5out.barnet.com.au (Postfix, from userid 1001) id D74D6221A112; Mon, 10 Sep 2007 09:07:11 +1000 (EST) X-Viruscan-Id: <46E47C9F00004A027BAFB5@BarNet> Received: from mail5auth.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail5.barnet.com.au (Postfix) with ESMTP id 93C1521B1001 for ; Mon, 10 Sep 2007 09:07:11 +1000 (EST) Received: from k7.mavetju (k7.mavetju.org [10.251.1.18]) by mail5auth.barnet.com.au (Postfix) with ESMTP id 4CC492219DFB for ; Mon, 10 Sep 2007 09:07:11 +1000 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id C35D554A; Mon, 10 Sep 2007 09:07:13 +1000 (EST) Date: Mon, 10 Sep 2007 09:07:13 +1000 From: Edwin Groothuis To: ports@freebsd.org Message-ID: <20070909230713.GJ1390@k7.mavetju> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: Installing KLD modules on AMD64 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2007 23:07:13 -0000 FYI: According to ports/100703 and ports/115517, the macro INSTALL_PROGRAM corrupts .ko files on AMD64 machines: You cannot strip kernel modules on amd64, because modules are elf object files, as opposed to shared objects on all other archs. Strip strips the object file symbol table, that is used by the static linker and in-kernel linker on amd64. On the other hand, shared object contains also a dynamic symbol table, that is not stripped and used by in-kernel linker on !amd64. To overcome this problem I have submitted ports/116200 which adds the INSTALL_KLD command which can be used to properly install .ko files without the fear of them being stripped. Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/