How can I link the kernel with libgcc ?



Hi all,

I'm writing an audio driver and the hardware requires floating point arithmetic. When I build the kernel I get the following errors at link time:

*** Warning: "__subdf3" [sound/sh/siu_sh7343.ko] undefined!
*** Warning: "__muldf3" [sound/sh/siu_sh7343.ko] undefined!
*** Warning: "__divdf3" [sound/sh/siu_sh7343.ko] undefined!
*** Warning: "__adddf3" [sound/sh/siu_sh7343.ko] undefined!

These symbols are coming from gcc. What I would like to do is link the kernel with libgcc to solve this errors. I'm looking at the kernel makefiles and it doesn't seem obvious to me how to do it. Does anyone know how I can link the kernel with libgcc, or point me in the right direction ?

By the way this is for the Renesas SH7343 processor.

Thanks,


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



Relevant Pages

  • Re: removing bcopy... because its half broken
    ... It still emits calls to libgcc. ... I disagree with your first sentence: The kernel provides the required ... it no longer gets emitted by gcc since ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: removing bcopy... because its half broken
    ... This means IMHO that the image and every module needs to link ... > against libgcc to include the required symbols. ... The kernel very much on purpose does not trust gcc. ...
    (Linux-Kernel)
  • Re: How can I link the kernel with libgcc ?
    ... When I build the kernel I get the following errors at link ... or do funky fixed-point math instead? ... kernel with libgcc to solve this errors. ... The right direction - either push it to userspace, or find a way to do it ...
    (Linux-Kernel)
  • Re: How can I link the kernel with libgcc ?
    ... I'm writing an audio driver and the hardware requires floating point arithmetic. ... When I build the kernel I get the following errors at link time: ... Does anyone know how I can link the kernel with libgcc, or point me in the right direction? ...
    (Linux-Kernel)
  • Re: unresoved symbol _gp_disp
    ... NO FLOATING POINT in the kernel PERIOD. ... save the FP context explicitely and disable preemption. ... designed to support userspace. ...
    (Linux-Kernel)