From owner-freebsd-stable@FreeBSD.ORG Tue Apr 16 06:14:43 2013 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 76FD8D83 for ; Tue, 16 Apr 2013 06:14:43 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) by mx1.freebsd.org (Postfix) with ESMTP id 26822E9C for ; Tue, 16 Apr 2013 06:14:42 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.69) (envelope-from ) id 1URz94-0001DA-6b; Tue, 16 Apr 2013 13:13:34 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id r3G6ESrF034620; Tue, 16 Apr 2013 13:14:28 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id r3G6E6gx034597; Tue, 16 Apr 2013 13:14:06 +0700 (NOVT) (envelope-from danfe) Date: Tue, 16 Apr 2013 13:14:06 +0700 From: Alexey Dokuchaev To: Ryan Stone Subject: Re: fusefs-kmod does not work on 8-STABLE? Message-ID: <20130416061406.GA31583@regency.nsu.ru> References: <20130410052710.GA36137@regency.nsu.ru> <20130412101746.GA68687@regency.nsu.ru> <20130412142802.GA1657@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Apr 2013 06:14:43 -0000 On Mon, Apr 15, 2013 at 10:41:36PM -0400, Ryan Stone wrote: > On Fri, Apr 12, 2013 at 10:28 AM, Alexey Dokuchaev wrote: > > I've found the culprit: the problem is in this command of the build: > > > > ld -Bshareable -d -warn-common -o hello.ko.debug hello.kld > > > > I had put /usr/local/bin in my $PATH before /usr/bin for a reason I don't > > currently recall, and have binutils-2.23.1 installed. As a result, ld(1) > > in the quoted line above was called from /usr/local/bin/ld, [...] > > Is this for i386? When compiling modules with newer versions of ld I had > to add the following flags to the ld invocation to get the module to work: Yes, this is for i386. > -u __start_set_sysinit_set -u __start_set_sysuninit_set \ > -u __start_set_sysctl_set -u __start_set_modmetadata_set \ > -u __stop_set_sysinit_set -u __stop_set_sysuninit_set \ > -u __stop_set_sysctl_set -u __stop_set_modmetadata_set Hmm. Adding these does help, indeed. How did you come up with this list? Is it documented anywhere, or just the result of careful readelf/objdump examination? Thanks! ./danfe