From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8071 invoked by alias); 27 Nov 2009 04:43:49 -0000 Received: (qmail 8063 invoked by uid 22791); 27 Nov 2009 04:43:48 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f203.google.com (HELO mail-pz0-f203.google.com) (209.85.222.203) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Nov 2009 04:43:44 +0000 Received: by pzk41 with SMTP id 41so835203pzk.0 for ; Thu, 26 Nov 2009 20:43:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.9.34 with SMTP id 34mr56233wfi.114.1259297022530; Thu, 26 Nov 2009 20:43:42 -0800 (PST) In-Reply-To: <4B0F556D.8040607@gmail.com> References: <4df04b840911231758md5a545el2d417b663af1647f@mail.gmail.com> <4df04b840911251824j71fa1d33i2cecc9481617dda5@mail.gmail.com> <4B0DF1EC.30001@redhat.com> <4df04b840911252204g33297e18m8e189c62a0662378@mail.gmail.com> <4df04b840911261818q50f3da9bs3213c1a2982278f4@mail.gmail.com> <4B0F556D.8040607@gmail.com> Date: Fri, 27 Nov 2009 04:43:00 -0000 Message-ID: <4df04b840911262043i582df686w713c64cfb202af03@mail.gmail.com> Subject: Re: No .got section in ELF From: yunfeng zhang To: Dave Korn Cc: Alexandre Oliva , Richard Henderson , gcc@gcc.gnu.org, Andrew Haley Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00761.txt.bz2 You can run a.out several times 24>>a5e0<<, 249>>41c<< 11>>15e0<<, 110>>41c<< c7>>85e0<<, c77>>41c<< 8c>>35e0<<, 8c2>>41c<< ... Now open f.map g =3D 0x15e0, foo =3D 0x41c is it 5 + 3 =3D 4 + 4? 2009/11/27 Dave Korn : > yunfeng zhang wrote: > >> have an *exact* map to foo.so in disk > > =A0This is where your misunderstanding arises. =A0Just as 5+3 can add up = to the > same result as 4+4, so you cannot ignore that the final mapped addresses = you > are seeing add up to the same result via different routes. =A0Compile your > sources using --save-temps, and look at the differences in the generated > assembly files. =A0By looking only at the final results, you are losing > information about how those results are arrived at. > > =A0 =A0cheers, > =A0 =A0 =A0DaveK > > > >