Olivier Galibert <galibert(a)pobox.com> writes:
> Are you sure about that? What gives you the guarantee that
mmap()
> will return the same address? I'm curious.
Nothing. It's only probable, and due to the identical virtual
memory layout. It may change if some other application forced a
remapping of the shared libraries or this kind of shit.
Or if you upgrade to a different OS revision. Or if you take your
binary to another system. Or...
> (Something that calls itself a "portable dumper"
should be
> portable, after all. OK, I couldn't resist this one.)
I will still work no matter what mmap returns, of course :-)
In that case, I think it should print a really really scary warning.