[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#421790: gcc-4.1: Dynamic symbol information missing in stripped libraries



On Tue, May 01, 2007 at 04:30:57PM +0200, Frans Pop wrote:
> With 4.1.2-5, the last command results in:
> Dynamic symbol information is not available for displaying symbols.
> 
> With 4.1.2-4, the last command results in:
> Symbol table for image:
>   Num Buc:    Value  Size   Type   Bind Vis      Ndx Name
>   993   0: 000be898     4  OBJECT GLOBAL DEFAULT  26 __ctype32_b
>   946   0: 0004f840   932    FUNC GLOBAL DEFAULT  10 execvp
>   972   1: 00082ff0   889    FUNC GLOBAL DEFAULT  10 _dl_addr
>   367   1: 0004ff40     8    FUNC GLOBAL DEFAULT  10 getpgrp
>   781   2: 00000000   309    FUNC GLOBAL DEFAULT UND ___tls_get_addr
>   385   2: 00078fa0    51    FUNC GLOBAL DEFAULT  10 pthread_setcancelstate
>   [...]

>From the -5 changelog:
   * Link using --hash-style=gnu/both.

It seems to only generate a gnu hash now.  Looking at the difference in
sections between -4 and -5, .hash got replaced by a .gnu.hash section.

I assumed from the changelog that it would be using both, but that
doesn't seem to be the case.

I think it's just a bug in readelf that it can't deal with the gnu hash.


Kurt




Reply to: