From patchwork Mon Jan 9 19:48:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 90572 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp247514qgi; Mon, 9 Jan 2017 11:48:54 -0800 (PST) X-Received: by 10.98.100.69 with SMTP id y66mr530847pfb.174.1483991334168; Mon, 09 Jan 2017 11:48:54 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id l24si17496109pgo.13.2017.01.09.11.48.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jan 2017 11:48:54 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-return-76634-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-76634-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-76634-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=Ogh7fS3In0qZV4dTBwDsYkgAqVYhnkCLSZ/Vvh88DaHfjDcr6rkzL 9wYBYtLXw7uNao0y/3/bXk/HFp6xK0Pkt2cGyLyZDvFqi5buy5DkmCfslfaiwrDo p1vSZynXk/Cvz0C5APj9uusdatuiNkuk1pV2sgFFSo64EOAHpaIHlg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=/M5knzgiM0Al3HBtANS4FNJT+ms=; b=blqTe6G6EauVPqGP/56YdMT0OQEW /y2BB2N57ZerBYZiYBR52Snjyn8FwYdBpHMOfFKKdSaErjdiV2Jc/9nZper1t3OA n0fOUYQRP2qsunjzOpQGn4eOfi1tAhWvOPWB9mwMexmFr5xoV4ZleRifd8XduGCq s46JJ9XFDjMePyg= Received: (qmail 4939 invoked by alias); 9 Jan 2017 19:48:41 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 4926 invoked by uid 89); 9 Jan 2017 19:48:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=axg, Hx-languages-length:1408 X-HELO: mail-vk0-f53.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=6C0ZOt6+GPkUA5UJCu5w5Amr33gKacomtXvx5W3tBag=; b=ON0OF/3q3XJF95iSzSenrSaOBbLjgTSVY0zcpEiRDSaYH5nPYDZKEhvllKHWdDk3ub W4oIzSF2sbFOdNGDRW7nu/Akcp29i4rZFV8MEXzW8sQow/+fb1N17t7UPGgIVVxmpIx5 A0iStdhSPCEj1eYYEzXUT+S21I0sosmWBx6yhx2mbGmam2y4i/y8CgNr4kfQ3MpEGVUs +Gj2Q/ItqvXkgUwRV49LshdqsZbyIgwDIGc8raRnr8Gkug6cMHPcNsmYHinZ1vfXH6x0 ctaRaNn3nBFibOIvZq45BIB/MxtT6zj+09ltM0mzmKK0q7QeqW35HSLADg65udSI8p3M PhZA== X-Gm-Message-State: AIkVDXIlE1iLGPb5L2dZJmSyjqkQA40LvZKGTR1LlExbx9TRAi6YXKI+cWNov+TKsNOdYYYF X-Received: by 10.31.216.134 with SMTP id p128mr33120669vkg.147.1483991308769; Mon, 09 Jan 2017 11:48:28 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH] Use comdat instead of .gnu.linkonce for i386 setup pic register Date: Mon, 9 Jan 2017 17:48:21 -0200 Message-Id: <1483991301-14420-1-git-send-email-adhemerval.zanella@linaro.org> GCC has moved from using .gnu.linkonce for i386 setup pic register with minimum current version (as for binutils minimum binutils that support comdat). This patch replace linkonce usage by comdat. Checked on i686-linux-gnu. [BZ #20543] * sysdeps/i386/sysdep.h (SETUP_PIC_REG): Use comdat instead of gnu.linkonce section. (SETUP_PIC_REG_STR): Likewise. --- ChangeLog | 7 +++++++ sysdeps/i386/sysdep.h | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/sysdeps/i386/sysdep.h b/sysdeps/i386/sysdep.h index d2b0860..35d65a4 100644 --- a/sysdeps/i386/sysdep.h +++ b/sysdeps/i386/sysdep.h @@ -97,7 +97,7 @@ lose: SYSCALL_PIC_SETUP \ # define SETUP_PIC_REG(reg) \ .ifndef GET_PC_THUNK(reg); \ - .section .gnu.linkonce.t.GET_PC_THUNK(reg),"ax",@progbits; \ + .section .text.GET_PC_THUNK(reg),"axG",@progbits,GET_PC_THUNK(reg),comdat; \ .globl GET_PC_THUNK(reg); \ .hidden GET_PC_THUNK(reg); \ .p2align 4; \ @@ -140,7 +140,8 @@ GET_PC_THUNK(reg): \ # define SETUP_PIC_REG_STR(reg) \ ".ifndef " GET_PC_THUNK_STR (reg) "\n" \ - ".section .gnu.linkonce.t." GET_PC_THUNK_STR (reg) ",\"ax\",@progbits\n" \ + ".section .text." GET_PC_THUNK_STR (reg) ",\"axG\",@progbits," \ + GET_PC_THUNK_STR (reg) ",comdat\n" \ ".globl " GET_PC_THUNK_STR (reg) "\n" \ ".hidden " GET_PC_THUNK_STR (reg) "\n" \ ".p2align 4\n" \