PATCH: Build shared libraries with -Bsymbolic-functions

Andrew Pinski pinskia@physics.uc.edu
Sun Feb 11 09:09:00 GMT 2007


> 
> 
> --pWyiEgJYm5f9v55/
> > 
> > BOOL objc_hash_is_key_in_hash (cache_ptr cache, const void *key);
> > 
> > is in hash.h and user can call it. It can't be hidden. But there
> > is
> > 
> > [hjl@gnu-26 .libs]$ readelf  --wide -r libobjc.so.2  | grep objc_hash_is_key_in_hash
> > 0000000000217910  0000010700000007 R_X86_64_JUMP_SLOT 000000000000cde0 objc_hash_is_key_in_hash + 0
> > 
> > My approach will remove this relocation.
> > 

Again the benifit is little and useless for libobjc.  Look at your numbers,
only 100 saved which is small.  I still an rejecting this patch, there
are better ways of doing this issue in a generic way instead of changing
all of target libraries.

-- Pinski



More information about the Gcc-patches mailing list