From owner-freebsd-amd64@FreeBSD.ORG Mon Mar 3 13:06:05 2008 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A9D1106566C for ; Mon, 3 Mar 2008 13:06:05 +0000 (UTC) (envelope-from jean-yves.moulin@kewego.com) Received: from mx0.kewego.com (mx0.kewego.net [194.62.234.66]) by mx1.freebsd.org (Postfix) with ESMTP id 459A68FC1B for ; Mon, 3 Mar 2008 13:06:05 +0000 (UTC) (envelope-from jean-yves.moulin@kewego.com) Received: from pifpaf.cardinet.kewego.int (unknown [10.2.2.20]) by mx0.kewego.com (Postfix) with ESMTP id 13E4833C65 for ; Mon, 3 Mar 2008 13:47:34 +0100 (CET) Message-ID: <47CBF364.4030905@kewego.com> Date: Mon, 03 Mar 2008 13:47:32 +0100 From: Jean-Yves Moulin Organization: Kewego User-Agent: Thunderbird 2.0.0.12 (X11/20080229) MIME-Version: 1.0 To: freebsd-amd64@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 03 Mar 2008 13:25:17 +0000 Subject: kernel module and float X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 13:06:05 -0000 Hello, I have a problem with gcc on amd64 platform. I need to do division and multiplication with float into a kernel module. This module compile, load and run without problem on i386 platform. I can compile it on amd64 but when I try to load it I have: link_elf_obj: symbol __mulsf3 undefined After some search, I found that __mulsf3 (and __divsf3...etc) are builtin function of gcc. In my assembly source result, I have a "call __mulsf3" but the function is defined nowhere. I'm working on amd64 6.3-RELEASE binaries and source tree. Is that normal ? Do I need to use something special in order to use float into kernel ? How can I solve this ? Thanks in advance for your help Best regards, jym