From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6371 invoked by alias); 16 Feb 2015 12:25:33 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 6359 invoked by uid 89); 16 Feb 2015 12:25:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Feb 2015 12:25:31 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 904F2A80599; Mon, 16 Feb 2015 13:25:28 +0100 (CET) Date: Mon, 16 Feb 2015 12:25:00 -0000 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: perl-5.14.4 Message-ID: <20150216122528.GA8493@calimero.vinschen.de> Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <87386gtaub.fsf@Rainer.invalid> <87fva8cl9v.fsf@Rainer.invalid> <87bnkwci40.fsf@Rainer.invalid> <20150215103230.GN7225@calimero.vinschen.de> <87bnkvxqi6.fsf@Rainer.invalid> <20150215143117.GT7225@calimero.vinschen.de> <87sie7vvfr.fsf@Rainer.invalid> <20150216091720.GW7225@calimero.vinschen.de> <871tlq194r.fsf@Rainer.invalid> <20150216102535.GD7225@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <20150216102535.GD7225@calimero.vinschen.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-02/txt/msg00201.txt.bz2 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1990 On Feb 16 11:25, Corinna Vinschen wrote: > On Feb 16 10:46, Achim Gratz wrote: > > It still is about the debug sections=E2=80=A6 They are still present i= n the > > rebased object files, but nm and objdump don't associate the information > > in them with the code anymore. The same thing already happens when I > > just change the ImageBase, so it seems that rebase would somehow also > > have to change something in the debug records, albeit it's entirely > > unclear what that might be. >=20 > The only thing I can think of: The debug sections contain pointers to > symbols, code, etc. Either these are absolute, which makes them depend > on the executable being loaded exactly in the same spot as it were based > to when building the executable, or they are relative to a base and the > base is stored separately from the VMA. >=20 > I don't know the internals of the dwarf2 format well enough, so this is > just an (un?)educated guess. Again, I'll ask a collegue. Hang on. Perhaps I just missed the crucial point here, but it just occured to me that the DLLs are rebased as part of the autorebase script. So what you have is a DLL which gets some automatic address at build time. Then the debug information is split off. At this point, is the debug information usable? Then somebody installs the package and autorebase rebases the DLL=20 /usr/bin/foo.dll. But it does not rebase the debug info for the DLL /usr/lib/debug/usr/bin/foo.dll.dbg. If the /usr/lib/debug/usr/bin/foo.dll.dbg file is rebased to the same address as /usr/bin/foo.dll, shouldn't that "fix" the issue? If that's really the issue, I'm wondering if that can be fixed or worked around in GDB. If that's too much hassle, we should probably start rebasing the debug info in /usr/lib/debug as well. That only requires some small hacking of rebase. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJU4eG4AAoJEPU2Bp2uRE+g28IP/3dgyk34nC8Hstl4S5td+cos dY+DNHy7liULK8l8DaIJBX4AjvMfuD1IQybZa4KakE8y3G0KzGKObnVbk/HV1F3j YIAsh0I9LikbjyG2hS9nXPrZOj2QGXP8vIE2txWJP/XR0kTmE3qietJ5heNpXz1J wy5N+JvHueZxU/NilcgK2v6zNHXRO3dqEPJ+qg0YoCGMTPa7JYDE6F1sMValWWZy hJTcntmtgMkzpRnm2gHTe3lh5OM7iod+svwsfHX9weZ5u2X7hg8H9jahr9E9sWWu fGQdP7/YME8mhOr2l303F2WfIk7Bp3cvx2SPyiISdUq9dJSeb4Irc+xCH0C8Y9Pb efaSY74kPmS8sQnhQgEX69LXXmOZLRT49IlA82h0TDE7vlbM2E7jYZqV7SqQJWMV kvyobE4E/SnbySo7VDM9LyWY2+1gl2jWh+yXD1wCwiIS5DJV2sFcswaG/sUKAFTf QWJ2ihspMDhIlzZfnJcQWkzRbxBGytbs0UAOITZ/Ym3i6nPVN9BRSsoJIY2TyyvU Ty1a0JVhuM4wTik9RiKlssxOwTggZojB4hOf9VJTfvc+Q9MimIitu3F/YBvMVvTS FUql0KTQ0131WEO32bt7LT2qy9IXyBrGo/0MpBCu6PNSgfiSdeQve1uwtvurKIbK G7jckyZjh3GlOaH5uzdw =pRKd -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr--