| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Date: | Mon, 22 Dec 2003 10:28:11 -0500 |
| From: | Jason Tishler <jason AT tishler DOT net> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Question about default base address and offset for rebasing DLLs |
| Message-ID: | <20031222152811.GJ1560@tishler.net> |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <Law9-OE66fdMmMUVrHx000073c2 AT hotmail DOT com> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <Law9-OE66fdMmMUVrHx000073c2@hotmail.com> |
| User-Agent: | Mutt/1.4i |
| X-IsSubscribed: | yes |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |