Question about default base address and offset for rebasing DLLs

Rafael Kitover rkitover@hotmail.com
Wed Dec 10 11:59:00 GMT 2003


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?

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 $@
EOF
   }
   $target;
}

This appends the rebase command to the Makefile target that builds the
dll.

I've had some mapping problems when building Perl extensions without
this in the hints file. Will binutils eventually rebase things to some
sort of standard as well?

-- 
Rafael

--
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/



More information about the Cygwin mailing list