[uClibc]shared library for arm
Shane Nay
shane at minirl.com
Thu Dec 13 11:35:38 UTC 2001
On Wednesday 12 December 2001 21:55, Hb wrote:
> Hi
> I'm making a uClibc shared library for arm.But I have some ld
> errors list below.I want to know how to modify the uClibc source.
> Rick
Strange, it's complaining about something being defined twice in the
same objectfile. It looks like you might be using the softfloat
built into gcc?, rather than libfloat. Anyway, my suggestion, unless
you have some compelling reason for doing otherwise, would be to use
a hardfloat toolchain and a kernel with the floating point routines
in it.
Also try expanding your libgcc.a via "ar x", and run arm-linux-nm on
the dp-bit.o file, and grep for those symbols that it said were
"doubles".
The problem I ran into with a softfloat toolchain and arm is binary
bloat from all the softfloat routines, they are much larger than on
say mips. Of course you could pull all those libs into a shared lib
and that would solve that. But most people are using a hardfloat
toolchain, and so that ends up getting the most testing and leads to
less headaches.
(I could be offbase and you are using a hardfloat toolchain, but I
think I've seen that dp-bit.o in a mips softfloat toolchain before,
and it was the internal stuff to GCC)
Thanks,
Shane Nay.
(I've used both hardfloat and softfloat, hardfloat is a lot less
headaches, but if you have a lot of legacy code with floats, or a
software dev team that won't listen when you complain about their
using floats, then you'll need the added performance that a softfloat
toolchain brings.)
More information about the uClibc
mailing list