From patchwork Mon Apr 21 18:41:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Fong X-Patchwork-Id: 340917 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 478B11400E8 for ; Tue, 22 Apr 2014 11:50:33 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6A8872F0B1; Mon, 21 Apr 2014 18:42:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kM-XikJyqleu; Mon, 21 Apr 2014 18:42:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C27292E615; Mon, 21 Apr 2014 18:42:14 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 806381BFA59 for ; Mon, 21 Apr 2014 18:42:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7D76C933C5 for ; Mon, 21 Apr 2014 18:42:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t1QSMUTvb5k7 for ; Mon, 21 Apr 2014 18:42:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by hemlock.osuosl.org (Postfix) with ESMTPS id 270C293439 for ; Mon, 21 Apr 2014 18:42:13 +0000 (UTC) Received: by mail-pb0-f49.google.com with SMTP id jt11so3987514pbb.22 for ; Mon, 21 Apr 2014 11:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=J2f05Euen4vBABQvzV0ThIpeigBBHK3XStSt4kHrG1s=; b=qAAC/fmgmLa8raZan+7jBDzlwnqxWeoHS78xIWiUwzJSBRY8P51gpJVPqMsNFepp0A mqHPYossnojxEKgnHH61e9gJMhvKJcGJE40i1JK0k4t91rDjB2l/ONyqR19Ul84RXQyq LmSR4ttycroXHDSMFW+f53zMXdp9CRFYT+1p8MiFRqd6n8TWQTLyB+0qRr4mFMaCeBBL B7R3nWj+hxJdhrVd2MIq0sD+fHCvCZymLu6wwYeGlD8n1nZnrbCxiPkkL/rvdF1wT+7r NiZV33LpTG0cfS42l8vkg9Np1fY2njkcOaMRg7lRy37XSNU/fYoQm3k4gg1Vn4wpRf0v ZJ9A== X-Received: by 10.66.190.73 with SMTP id go9mr39753370pac.18.1398105732831; Mon, 21 Apr 2014 11:42:12 -0700 (PDT) Received: from gregory-irv-00.broadcom.com (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by mx.google.com with ESMTPSA id xk3sm79596859pbb.65.2014.04.21.11.42.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 11:42:12 -0700 (PDT) From: Gregory Fong To: uclibc@uclibc.org Subject: [PATCH 1/3] ldso/mips: actually print results of each relocation Date: Mon, 21 Apr 2014 11:41:59 -0700 Message-Id: <1398105721-23735-1-git-send-email-gregory.0xf0@gmail.com> X-Mailer: git-send-email 1.8.3.2 X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: uclibc-bounces@uclibc.org The patched line was outside of the body of the loop over relocations and so would only print the results of the last relocation, fix that. Signed-off-by: Gregory Fong --- ldso/ldso/mips/elfinterp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ldso/ldso/mips/elfinterp.c b/ldso/ldso/mips/elfinterp.c index a90e163..8bcdddb 100644 --- a/ldso/ldso/mips/elfinterp.c +++ b/ldso/ldso/mips/elfinterp.c @@ -325,11 +325,11 @@ int _dl_parse_relocation_information(struct dyn_elf *xpnt, _dl_exit(1); } } - } #if defined (__SUPPORT_LD_DEBUG__) - if (_dl_debug_reloc && _dl_debug_detail && reloc_addr) - _dl_dprintf(_dl_debug_file, "\tpatched: %x ==> %x @ %x\n", old_val, *reloc_addr, reloc_addr); + if (_dl_debug_reloc && _dl_debug_detail && reloc_addr) + _dl_dprintf(_dl_debug_file, "\tpatched: %x ==> %x @ %x\n", old_val, *reloc_addr, reloc_addr); #endif + } return 0; }