From patchwork Tue Dec 18 21:04:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 1015628 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="husxnJie"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="B09JfnJP"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43K9Xq6FkFz9sDP for ; Wed, 19 Dec 2018 08:05:47 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HHjsCL79RTX/fRJDWbEUVkARnd4zWmDBemxTJkQHlRk=; b=husxnJievGt2OP W0+1cdDEvTfbnrkn6mgrc2f3gK5XZ37AtqHloMjjaIKRibDk2kihXB5qBs6/TV2u26ui8vbWD8wHx XMSdq/zA4CzY4LzZw2A39dKwR6Y54FiBjWS6N3jCKA8bkNldpvQMg0kef0/dHh0S4JsZAxu5PSsO8 MkJfvCklkQES7jbKCDN9iCSFWFuFxDkH0C69dpNL8kKdIb+L62+45n/w/v/cK/O7h9LTdbY7GZE/g Z2GbC3izswvYPb1oU7gR24+Tr2n/DnsMn6hrd5vV7Ettue/T3QGwCvqKAaGKVb/nZMVZmWyfyGVLi GxAWsTngwXBeKuRwPxcg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZMYh-0001nU-UU; Tue, 18 Dec 2018 21:05:43 +0000 Received: from smtprelay2.synopsys.com ([198.182.60.111] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZMYf-0001gR-0h for linux-snps-arc@lists.infradead.org; Tue, 18 Dec 2018 21:05:42 +0000 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id DF95810C0AE2; Tue, 18 Dec 2018 13:05:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1545167130; bh=nkF1nadwJK8RsGDnq30x6s/rxD7TUa37Ia1nRUAnge4=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=B09JfnJPXmlQhrnrjQw/uVZmrQV6QLJwBYyQB16scUUbVjrp00Vu0+66g8N5LfH3C iNyoX+N1CVheQ9cVN0cStkY7cb42CK5XRXVNYiY1s3EvflvEIcXv97QUmtWR8NThcx 9nBB7J+d84E6Knalv31qI5rSMJU0A3qMaPfUB11bWJk8GXqxs0aHPXgKMlTI8W/Wgf R8KouBYF9gidXsOaOLJFadHwD/j3B6f4AS/iG1iv2m/L32MqqtShqKCM+P474IDgLr ZwljtotQkAetz4ODeunkBPebpQX13+7kjy66o1Dx+WadIcX/23E5RlVtIvwLOVhnF0 JAkUerYDSlOWA== Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2-vip.internal.synopsys.com [10.12.239.238]) by mailhost.synopsys.com (Postfix) with ESMTP id D1C32521C; Tue, 18 Dec 2018 13:05:30 -0800 (PST) Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.104) by US01WEHTC2.internal.synopsys.com (10.12.239.237) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 18 Dec 2018 13:05:30 -0800 Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.105) by IN01WEHTCA.internal.synopsys.com (10.144.199.103) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 19 Dec 2018 02:35:28 +0530 Received: from vineetg-Latitude-E7450.internal.synopsys.com (10.10.161.70) by IN01WEHTCB.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 19 Dec 2018 02:35:27 +0530 From: Vineet Gupta To: Subject: [PATCH 18/21] ARC: testsuite fix: GD TLS issue Date: Tue, 18 Dec 2018 13:04:40 -0800 Message-ID: <1545167083-16764-19-git-send-email-vgupta@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545167083-16764-1-git-send-email-vgupta@synopsys.com> References: <1545167083-16764-1-git-send-email-vgupta@synopsys.com> MIME-Version: 1.0 X-Originating-IP: [10.10.161.70] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181218_130541_061490_1374B7C1 X-CRM114-Status: GOOD ( 10.83 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.60.111 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cupertino Miranda , Vineet Gupta , linux-snps-arc@lists.infradead.org Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Cupertino Miranda Offset set by the linker in the GOT entries would be overwritten by the dynamic loader instead of added to the symbol location. Other target have the same approach on DTSOFF relocs. Signed-off-by: Vineet Gupta --- ChangeLog | 4 ++++ sysdeps/arc/dl-machine.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 39ff298b0091..ec068c7c5925 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2018-12-17 Cupertino Miranda + + * sysdeps/arc/dl-machine.h: Fix relocation. + 2018-12-17 Vineet Gupta * sysdeps/unix/make-syscalls.sh: Fix comment referencing diff --git a/sysdeps/arc/dl-machine.h b/sysdeps/arc/dl-machine.h index 02727a3a4d47..f4757904084a 100644 --- a/sysdeps/arc/dl-machine.h +++ b/sysdeps/arc/dl-machine.h @@ -290,7 +290,7 @@ elf_machine_rela (struct link_map *map, const ElfW(Rela) *reloc, case R_ARC_TLS_DTPOFF: if (sym != NULL) { - *reloc_addr = sym->st_value; + *reloc_addr += sym->st_value; } break;