[PATCH 2/2] ldso: make hashcode handling more generic

Rich Felker dalias at aerifal.cx
Thu Nov 7 05:27:48 UTC 2013


On Wed, Nov 06, 2013 at 11:23:06AM +0200, Baruch Siach wrote:
> The hashcode handling code never accesses the underlying structure
> 'struct funcdesc_value', but only operates on pointer to pointers,
> so we can use void** instead.

No you can't. This is an aliasing violation, and a compiler performing
LTO would be free to reorder accesses in such a way as to horribly
break things. However it appears the code may already contain some
similar aliasing violations. This should be investigated before any
further changes are made.

Rich


More information about the uClibc mailing list