[PATCH] _dl_find_hash: skip lookup if the DSO hasn't an hash table

Carmelo AMOROSO carmelo.amoroso at st.com
Wed Sep 19 16:23:35 UTC 2007


Mike Frysinger wrote:
> On Wednesday 19 September 2007, Carmelo AMOROSO wrote:
>   
>> attached patch for the ld.so checks that during symbol lookup
>> process, the DSO has an hash table, otherwise we need to skip
>> over the next into the list.
>>     
>
> idle curiosity, how did you generate a DSO w/out a hash table ?  or is this 
> a "it's got a GNU hash table but not a SYSV hash table" ?
> -mike
>   
I didn't actually... could be considered in preparation of supporting 
GNU hash style.

Anyway, looking at the _dl_add_elf_hash_table, there is a null check for 
the dynamic_info[DT_HASH],
that, should be alway not null, being initialized by 
"_dl_parse_dynamic_info", so for coherence I added that check

Discard this patch if you think currently not pointless.

Carmelo





More information about the uClibc mailing list