httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: svn commit: r568833 - in /httpd/httpd/trunk: include/ap_mmn.h include/util_mutex.h modules/ssl/mod_ssl.c modules/ssl/ssl_engine_config.c server/core.c server/mpm_common.c server/util_mutex.c
Date Thu, 23 Aug 2007 16:04:01 GMT
Jim Jagielski wrote:
> 
> On Aug 23, 2007, at 1:55 AM, wrowe@apache.org 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

Mime
View raw message