You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "William A. Rowe, Jr." <wr...@lnd.com> on 2000/04/16 01:31:13 UTC
[Patch 2.0] .dsp link options
OK... Time for the build patches for 2.0/Win32...
I will start from the -simplest- to the most complex.
A single topic at a time, best as I can.
linkwin20.diffs Resolves:
1) Explicit /base: addresses by the following table...
Required sizes are for debug builds. It is assumed that
as we increase the size of aprlib, we will be trimming
the size of ApacheCore, and the 278A0000 base can move down.
ApacheCore.dll 27800000 80000 required
aprlib.dll 278A0000 40000 required
ApacheModuleAuthAnon.dsp 27900000
ApacheModuleCERNMeta.dsp 27910000
ApacheModuleDigest.dsp 27920000
ApacheModuleExpires.dsp 27930000
ApacheModuleHeaders.dsp 27940000
ApacheModuleInfo.dll 27950000
ApacheModuleRewrite.dsp 27960000 20000 required
ApacheModuleSpeling.dsp 27980000
ApacheModuleStatus.dsp 27990000
ApacheModuleUserTrack.dsp 279A0000
ApacheModuleProxy.dsp 279B0000 20000 anticipated
3 slots still available 279C0000
2) Make APR consistent with the rest of the API and
not build septypes for debugging (in other words,
roll in the debug symbols as every other module does.)
If we decide we LIKE /pdbtype:septypes... then we
should be using them throughout.
3) Slide the current path specs into /libpath: options
so the library list is more ledgible.
4) Drop all the gui crud from the library list. Everything
listed is referenced, with the following exceptions:
*) don't do anything with msvcrtd/oldnames today.
*) aprlib and ApacheCore have the same list, since functions
may still be moving between them.
*) apache.exe looses networking (it doesn't), while it keeps
advapi, which I don't think it needs, but it could later.
*) add aprlib to ApacheModuleProxy, since it will need it.
*) hang mswsock whereever ws2_32 is invoked. I believe
the most special case was ApacheModuleProxy, which may
become entirely APR. But for today we hang onto both.
5) MAP, MAP, MAP, everything gets a map. I for one have an
untold number of installed OS's and boot mappings, and the
debugger isn't installed to all of them. We gotta be able
to track down those renegade GP faults. (What faults...
I know, it's clean, but I am overly cautious that way.)
6) Set the DEFAULT linkage to be this linkage. Because
"it's a vc thing" the defaults were not all that
useful as a starting point (take, for example, the
joke of linking to the OLE libraries).
I suggest a policy. Before a release is rolled,
assure that the BASE options match the current
options in the dsp project files. Now, as the
dev cycle rolls, and we are individually mucking
around, we can recall the BASE config by simply
clicking 'Reset' in the settings tab.
Once a change is put in place, and incorporated
into the release, we touch to the BASE option
and loose our 'memory' of how things used to
be done.
In other words, BASE changes are deliberate, while
the current options may be incidental or accedental.
All this can be reviewed right before release... I'm just
trying to clean up these builds to speed up development.
You will notice there are no .mak files, with a reason.
Refer to the next post for more info.
Please commit ASAP to minimize the number of hand edits I must do to the diffs, in order to isolate a single type of change.
RE: DLL Base addresses (was: .dsp link options)
Posted by "William A. Rowe, Jr." <wr...@lnd.com>.
> From: Greg Stein [mailto:gstein@lyra.org]
> Sent: Monday, April 17, 2000 8:38 PM
>
> On Mon, 17 Apr 2000, William A. Rowe, Jr. wrote:
> >...
> > I should have mentioned right off that I contrived a starting
> > address >10000000 (dll address space). I'm using GroupWise 5.5.3,
> > Office97, VC5, and many, many more applications. Here's the rub...
> >
> > We don't want to be conflicting with any common app (if we hit up
> > on Joe J's shareware cd labeler, oh well). Watch the symbols when
> > Apache loads, you will get a message like;
> >
> > Relocated aprlib.dll due to address conflict with somecode.dll
> > at 0x10000000
> >
> > I'm sure you've noticed this before.
>
> Euh... those conflicts are only for within an particular .exe address
> space. Apache DLLs are not going to conflict with Office97 --
> they never
> get loaded into an Office process.
Doesn't matter... if a dll has been loaded (the stupid volume control
taskbar applet, for that matter) in the same address space, then the
next dll to try to overlay is relocated for it's lifetime. Every
loaded executable that binds to it needs to rebase their individual
calls. This slowed down the load by 120% in the original 2.0. Believe
me, I watch dll's crash against video drivers, groupwise, and just
about anything else.
> > If ANYONE sees a conflict with anything more than some obscure dll,
> > please advise on the list. We can't predict/test every combination
> > of platforms, so we better be ready to react if it conflicts with
> > something like the novell redirector, etc. There are no rules to
> > this game :-)
>
> Shouldn't matter.
It seems to.
> > I'll toss together a simple .dll scanner that pulls nothing but the
> > reloc base/length from all the dll's on a machine a reports the used
> > and available pages (they must be on 64k boundries last
> time I checked).
'simpler' solution to be announced in May.
DLL Base addresses (was: .dsp link options)
Posted by Greg Stein <gs...@lyra.org>.
On Mon, 17 Apr 2000, William A. Rowe, Jr. wrote:
>...
> I should have mentioned right off that I contrived a starting
> address >10000000 (dll address space). I'm using GroupWise 5.5.3,
> Office97, VC5, and many, many more applications. Here's the rub...
>
> We don't want to be conflicting with any common app (if we hit up
> on Joe J's shareware cd labeler, oh well). Watch the symbols when
> Apache loads, you will get a message like;
>
> Relocated aprlib.dll due to address conflict with somecode.dll
> at 0x10000000
>
> I'm sure you've noticed this before.
Euh... those conflicts are only for within an particular .exe address
space. Apache DLLs are not going to conflict with Office97 -- they never
get loaded into an Office process.
> If ANYONE sees a conflict with anything more than some obscure dll,
> please advise on the list. We can't predict/test every combination
> of platforms, so we better be ready to react if it conflicts with
> something like the novell redirector, etc. There are no rules to
> this game :-)
Shouldn't matter.
> I'll toss together a simple .dll scanner that pulls nothing but the
> reloc base/length from all the dll's on a machine a reports the used
> and available pages (they must be on 64k boundries last time I checked).
Extra work. Not needed.
Cheers,
-g
--
Greg Stein, http://www.lyra.org/
RE: [Patch 2.0] .dsp link options
Posted by "William A. Rowe, Jr." <wr...@lnd.com>.
THIS ISN'T a silly question - Win32 READERS ALERT.
> From: Bill Stoddard [mailto:stoddard@raleigh.ibm.com]
> Sent: Monday, April 17, 2000 9:10 AM
>
> > 1) Explicit /base: addresses by the following table...
> >
> How did you come up with the 27800000 base address? Probably
> a silly question. I'm
> learning a lot from your patches BTW.
I should have mentioned right off that I contrived a starting
address >10000000 (dll address space). I'm using GroupWise 5.5.3,
Office97, VC5, and many, many more applications. Here's the rub...
We don't want to be conflicting with any common app (if we hit up
on Joe J's shareware cd labeler, oh well). Watch the symbols when
Apache loads, you will get a message like;
Relocated aprlib.dll due to address conflict with somecode.dll
at 0x10000000
I'm sure you've noticed this before.
If ANYONE sees a conflict with anything more than some obscure dll,
please advise on the list. We can't predict/test every combination
of platforms, so we better be ready to react if it conflicts with
something like the novell redirector, etc. There are no rules to
this game :-)
I'll toss together a simple .dll scanner that pulls nothing but the
reloc base/length from all the dll's on a machine a reports the used
and available pages (they must be on 64k boundries last time I checked).
Re: [Patch 2.0] .dsp link options
Posted by Bill Stoddard <st...@raleigh.ibm.com>.
>
> 1) Explicit /base: addresses by the following table...
>
How did you come up with the 27800000 base address? Probably a silly question. I'm
learning a lot from your patches BTW.
Bill