On Wed, 22 Jul 2015 17:57:46 +0200 Luigi Gangitano wrote: > Hi Russel, > > Thanks for taking your time and reporting this bug. I did not understand completely what itâs going on and maybe you can help me find out. > > From my understanding: > > - no library is compiled from squid3 sources, thus -fPIC should not be needed. -fPIE should be used instead;
This is not quite true. Squid is constructed from a collection of convenience libraries. Which are statically linked as needed to each binary in the package. In 3.4 and 3.5 some are still constructed as full static libraries rather than convenience objects. My understanding was that -fPIC is needed on the convenience objects, and -fPIE on the final binaries. But that libtool takes care of determining which one (of the ones provided) is to be used on any particular object built. > - squid3 is compiled with hardening=+all flags and this includes â-fPIEâ which should handle text relocations; Nod. > - two symbols are reported from eu-findtextrel: > * _IO_stdin_used is a private symbol from libc and is not defined in squid3 sources (nor used directly); > * _ZTS11ACLStrategyIPKcE does not map to a function, but this may be my fault in understanding symbol names. > This is a virtual class template name. Amos