This is the mail archive of the
mailing list for the binutils project.
Re: Preventing dynamic loader from replacing code
That seems to have done the trick.Â We had tried that on Solaris and it didn't seem to help, but it does on Linux.Â Thanks.
> From: Doug Kwan (éæå) <firstname.lastname@example.org>
>To: Wayne Johnson <email@example.com>
>Cc: "firstname.lastname@example.org" <email@example.com>
>Sent: Tuesday, November 22, 2011 12:10 PM
>Subject: Re: Preventing dynamic loader from replacing code
>Check -if -Bsymbolic helps.
>On Tue, Nov 22, 2011 at 10:06 AM, Wayne Johnson <firstname.lastname@example.org> 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?