From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114192 invoked by alias); 15 Sep 2017 07:26:45 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 114092 invoked by uid 89); 15 Sep 2017 07:26:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Received:Fri X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-pf0-f178.google.com Received: from mail-pf0-f178.google.com (HELO mail-pf0-f178.google.com) (209.85.192.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Sep 2017 07:26:43 +0000 Received: by mail-pf0-f178.google.com with SMTP id x78so1015026pff.10; Fri, 15 Sep 2017 00:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HJgJynn10KTJf6pdsirIXVBD7m590vtbutTLyqhI0QU=; b=UZy9lE4pOQOPORX8DViLDYzya1PTcElGAeDxyRe6YTWWwLbgFOh3mVvfPVN0DIDrzw lpNat0nKubXnCERY4jIfLI9xmYlO3NXH/bRufw9GhwPSMVwxn/QbfzTl7W+fdtcPntxj c2jVemPp2ZHGRA5e5s+iWGf0VdWlEztSjs0iXBB+zr9ORooM8Bm+ucRWQUY7BfM3pjar SRdJamGf2VlwgIdEr1qeUtSa306FDzJ0SeFtGYIR6yVMeReGLgG40TKmA6Rf9nr7tYR8 lyKiM1xjHLmpWz6+tQk0AU9mbu4j0htA1fMTz072/yyoglY2T5KsXphjvrCF1I39WNc7 X8gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HJgJynn10KTJf6pdsirIXVBD7m590vtbutTLyqhI0QU=; b=LCLWpEizFp6FvnZCRDUeWQifx6TVny847WhTNR9D4VeONl6rTuRa5o4wDhrCfpZ75Y zYlpy5Uqcciq1fmQ44VaNMOaMGajlH7bLWO2J5vYdIxYn8Czf4im3ub9y/gmxktpQRh7 /W5IAzWwzq2wY9ubiREfALQs0M+P0GSzQtqIEhEb/gc8a4VT2I1DFya7UBaNd5eWtsTJ voBcheFqWcPjxAiElYng6/BIqHQiHSadLsAfLJDJxj/A8UmsCycNQZMiKFJKTaSfJ5vc UkiYBQzgooLYyu5ts+wYvRpf8xlaAU2mpN57idK6y1KZTNM+9fd4EbOl8JJUD9mrxbqR Mzhw== X-Gm-Message-State: AHPjjUgJAgYVZAalZ1c49eqkUx/W97ObHHsq1NN0tFUZ25CKRvVhNN8Z LGeULb/GHBl9Gg== X-Google-Smtp-Source: ADKCNb7zDh/eVDZQb4TwXAYv4nWBvpuB84zyWHSUNaRjhxbovaIbiJYPDaT3skDeRorznGgx/OxNZA== X-Received: by 10.98.60.14 with SMTP id j14mr23348270pfa.51.1505460401646; Fri, 15 Sep 2017 00:26:41 -0700 (PDT) Received: from bubble.grove.modra.org (CPE-58-175-73-248.czqe1.win.bigpond.net.au. [58.175.73.248]) by smtp.gmail.com with ESMTPSA id v24sm1021882pfi.132.2017.09.15.00.26.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Sep 2017 00:26:40 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id D3D16C54C9; Fri, 15 Sep 2017 16:56:36 +0930 (ACST) Date: Fri, 15 Sep 2017 07:26:00 -0000 From: Alan Modra To: Yubin Ruan Cc: binutils@sourceware.org, elfutils-devel@sourceware.org Subject: Re: entries in PT_DYNAMIC section refer to the correct address at runtime? Message-ID: <20170915072636.GN3528@bubble.grove.modra.org> References: <20170914102525.GJ3528@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2017-q3/txt/msg00109.txt.bz2 On Fri, Sep 15, 2017 at 02:57:36PM +0800, Yubin Ruan wrote: > 2017-09-14 18:25 GMT+08:00 Alan Modra : > > DT_ entries that specify addresses will need to be offset by the base > > address. > > Will base address be automatically adjusted by the dynamic linker if > it tries to loaded it at a different base address than that specified > in the `p_vaddr'? That might depend on the dynamic linker. glibc ld.so doesn't as far as I know. Build yourself a testcase and inspect the .dynamic section of a shared library or PIE under gdb. -- Alan Modra Australia Development Lab, IBM