This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [patch/rebase] Add a rebase database to keep track of DLL addresses
On 7/2/2011 7:46 PM, Christopher Faylor wrote:
> Ok, then, another question. What happens when a dll shrinks? It seems
> like we could be introducing "fragmentation" in that scenario. Since
> the dll loading address space is somewhat precious, it could be useful
> to recognize when there are exploitable holes introduced by dll
> shrinkage.
Now that actually sounds like a task for an ancilliary script. It could
process the *database* (assuming the last-known DLL image size, as well
as the image base, is kept there). It could do the necessary math and
flag any extant holes -- then the user would know that it's time to do a
full rebaseall. Or you could fold this functionality into another query
mode of rebase.exe itself.
The point is, I think this is more of an "analysis/query" rather than
something that should be handled during an *actual* rebasing operation.
--
Chuck