This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: About linker otions on rebasing
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 30 Jan 2008 06:27:31 -0800
- Subject: Re: About linker otions on rebasing
- References: <47A07995.7050508@alice.it>
- Reply-to: cygwin at cygwin dot com
Angelo Graziosi wrote:
> Only using '-Wl,--enable-auto-image-base' in its build makes it work
> also after the rebasing and, if I remember correctly, no DLL are created
> in its build.
You can look at the imagebase value in the .exe with and without being
built with that option and I'm quite sure it will remain the same. I
don't know what it is that makes the crash sensitive to libncurses being
rebased, but it's not something that follows from the semantics of what
the auto image base feature is supposed to do, i.e. it's accidental.
It would also be a good exercise to try this (i.e. rebuild libncurses
and emacs) with current CVS binutils as there have been reported (and
fixed) at least one bug with text relocs being calculated incorrectly
that causes the resulting DLL to crash if it's rebased.
Brian
--
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/