lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 17 Sep 2007 10:13:43 -0400
From:	Trond Myklebust <trond.myklebust@....uio.no>
To:	Ram <vshrirama@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Floating point computations in kernel modules

On Mon, 2007-09-17 at 19:36 +0530, Ram wrote:
> Hi,
> 
>    I am trying to write a driver which uses double, float. I am using
> an arm11 with gcc 3.4.4
> 
>    When i try to compile my modules (with float variables) i get the error
> 
>    WARNING: "__extendsfdf2" undefined!
>    WARNING: "__mulsf3"undefined!
>    WARNING: "__fixsfsi"undefined!
>    WARNING: "__floatsisf"undefined!
> 
>    Can we use float, double in kernel modules?.
> 
>   Obviously it is a linking error, I am using soft-float. I tried with
> -msoft-float but got the same   result.
> 
>   I suspect that its a toolchain issue.  However i am able to compile
> my applications
>   with float, double variables.
> 
> 
>   Please do advice.
> 
> 
> Regards,
> sriram
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

Feel free to peruse the Documentation directory before posting. More
specifically, Documentation/DocBook/kernel-hacking.tmpl has a chapter
called 'Some Basic Rules' which addresses your question.

Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ