This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Question about default base address and offset for rebasing DLLs
- From: Jason Tishler <jason at tishler dot net>
- To: cygwin at cygwin dot com
- Date: Mon, 22 Dec 2003 10:28:11 -0500
- Subject: Re: Question about default base address and offset for rebasing DLLs
- References: <Law9-OE66fdMmMUVrHx000073c2@hotmail.com>
Rafael,
Sorry for the delay...
On Wed, Dec 10, 2003 at 01:38:03AM -0800, Rafael Kitover wrote:
> I noticed that the /bin/rebaseall script assumes the following:
>
> DefaultBaseAddress=0x70000000
> DefaultOffset=0x10000
>
> Is this going to be the standard base and offset for DLLs in Cygwin?
I guess so. I based my decision on the following:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/rebaseimage.asp
Note I eliminated MIPS support in favor of a larger rebase address
space.
> Is this then a reasonable thing to include in the Cygwin hints file
> for my Perl project:
>
> package MY;
> sub MY::dynamic_lib {
> my $target = shift->SUPER::dynamic_lib(@_);
> if (defined $target && $target && -e '/bin/rebase') {
> $target .= <<'EOF';
> rebase -v -d -b 0x70000000 -o 0x10000 $@
I guess so.
> Will binutils eventually rebase things to some sort of standard as
> well?
Not unless you supply a patch... :,) However, since the build and
target machines are unlikely to match (from a rebase POV), I don't think
this is a viable approach. IMO, integration with Cygwin's setup.exe is
a better way to go.
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/