Preventing dynamic loader from replacing code

Doug Kwan (關振德) dougkwan@google.com
Tue Nov 22 18:10:00 GMT 2011


Check -if -Bsymbolic helps.

-Doug

On Tue, Nov 22, 2011 at 10:06 AM, Wayne Johnson <wdtj@yahoo.com> wrote:
> I am creating a module to load with an Apache web server on Linux.  The module uses PCRE to process some regular expressions.  I static link PCRE into the module to make sure it has the right version of PCRE.  The problem is that when Apache loads the module, it replaces my copy of PCRE with the one Apache has loaded.  Unfortunately the Apache one is incompatible.
>
>
> On Solaris, I used the -Breduce option to hide the PCRE sections from the dynamic linker.  Is there an similar way to do this with the GNU linker?  Any other ideas?
>



More information about the Binutils mailing list