This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 (éæå) <dougkwan@google.com>
>To: Wayne Johnson <wdtj@yahoo.com> 
>Cc: "binutils@sourceware.org" <binutils@sourceware.org> 
>Sent: Tuesday, November 22, 2011 12:10 PM
>Subject: Re: Preventing dynamic loader from replacing code
> 
>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?
>>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]