[uClibc]Broken linker behaviour

Shane Nay shane at minirl.com
Mon Jun 18 18:11:53 UTC 2001


On Monday 18 June 2001 07:02, Shane Nay wrote:
> Erik,
>
> This is strange, but I noted it's from ld.so, so maybe it's kosher but...

Wow, was that strange.  Mis-read.  Basically what was happening was this...
dl_find_hash has a do_rem which calls a %, which on ARM maps to a libgcc 
function, which is inside of libuclibc.  (__moddsi3)  But the problem is that 
the linux_resolver then calls dl_find_hash, so it's an infinite stack 
increasing loop.  Unfortunetly the compiler is really smart so doing a 
division multiplication subtraction for figuring out modulus just puts you 
back in the same position.  I could probably have a multiply(), or divide() 
routine and trick it, or come up with an assembly modulus routine.

Man..., what a pain.

Thanks,
Shane Nay.





More information about the uClibc mailing list