From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32525 invoked by alias); 27 Nov 2009 04:12:48 -0000 Received: (qmail 32516 invoked by uid 22791); 27 Nov 2009 04:12:47 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f227.google.com (HELO mail-ew0-f227.google.com) (209.85.219.227) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Nov 2009 04:12:41 +0000 Received: by ewy27 with SMTP id 27so1517352ewy.16 for ; Thu, 26 Nov 2009 20:12:39 -0800 (PST) Received: by 10.213.23.75 with SMTP id q11mr599457ebb.43.1259295159199; Thu, 26 Nov 2009 20:12:39 -0800 (PST) Received: from ?192.168.2.99? (cpc2-cmbg8-0-0-cust61.cmbg.cable.ntl.com [82.6.108.62]) by mx.google.com with ESMTPS id 10sm2179855eyd.5.2009.11.26.20.12.36 (version=SSLv3 cipher=RC4-MD5); Thu, 26 Nov 2009 20:12:37 -0800 (PST) Message-ID: <4B0F556D.8040607@gmail.com> Date: Fri, 27 Nov 2009 04:12:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: yunfeng zhang CC: Alexandre Oliva , Richard Henderson , gcc@gcc.gnu.org, Andrew Haley Subject: Re: No .got section in ELF References: <4df04b840911231758md5a545el2d417b663af1647f@mail.gmail.com> <4df04b840911251824j71fa1d33i2cecc9481617dda5@mail.gmail.com> <4B0DF1EC.30001@redhat.com> <4df04b840911252204g33297e18m8e189c62a0662378@mail.gmail.com> <4df04b840911261818q50f3da9bs3213c1a2982278f4@mail.gmail.com> In-Reply-To: <4df04b840911261818q50f3da9bs3213c1a2982278f4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/msg00760.txt.bz2 yunfeng zhang wrote: > have an *exact* map to foo.so in disk This is where your misunderstanding arises. Just 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. Compile your sources using --save-temps, and look at the differences in the generated assembly files. By looking only at the final results, you are losing information about how those results are arrived at. cheers, DaveK