Jim Jagielski wrote:
> 
> On Aug 23, 2007, at 1:55 AM, [EMAIL PROTECTED] wrote:
> 
>> ap_available_mutexes_string and ap_add_available_mutexes_string
>> cannot be data symbols when mod_ssl is built as a loadable module;
>> using an external string constant in a loadable module is not portable.
> 
> Wow... that's v. interesting...

Well, when you consider these are PIC or similar binaries, even where it
is implemented, you end up with

const cmd_rec ssl_commands {
  "SSLMutex", ..., char *[external]
}

where the dl runtime needs to resolve this external string description
to a [lib]httpd core *relocatable* data address.

For code entry points this is trivial; worst case, the linker and dl
runtime simply use a pointer to a stub entry point, which is fixed up
at either load or run time.  Data pointers don't enjoy the luxury of
being able to fix themselves up ;-)

Bill

Reply via email to