Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Originating-IP: [68.122.75.139] X-Originating-Email: [rkitover AT hotmail DOT com] X-Sender: rkitover AT hotmail DOT com From: "Rafael Kitover" To: "'Cygwin List'" Subject: Question about default base address and offset for rebasing DLLs Date: Wed, 10 Dec 2003 01:38:03 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: X-OriginalArrivalTime: 10 Dec 2003 09:38:06.0581 (UTC) FILETIME=[50ABBA50:01C3BF01] 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/