[uClibc]TEXTREL in libc.so.0 (libuClibc-0.9.19.so)

Erik Andersen andersen at codepoet.org
Fri May 30 05:09:43 UTC 2003


On Thu May 29, 2003 at 11:32:02AM +0200, Peter S. Mazinger wrote:
> Hello!
> 
> Running readelf -d /lib/libc.so.0, I'll get:
> 
> Dynamic segment at offset 0x3ff6c contains 17 entries:
>   Tag        Type                         Name/Value
[---------snip--------]
>  0x00000016 (TEXTREL)                    0x0
>  0x6ffffffa (RELCOUNT)                   174
>  0x00000000 (NULL)                       0x0
> 
> If -fPIC/-fpic is used, how does it come that TEXTREL is here (should it 
> not be fully relocatable with pic?). As I understand it, TEXTREL means 
> that there are parts that are not relocatable.

Yipe!  Yes you indeed found a bug.  Or rather a bunch of 
bugs, where we were testing for PIC rather than __PIC__ 
and were therefore producing the wrong code in several places.
Good spotting!

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--


More information about the uClibc mailing list