Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp822667imm; Fri, 3 Aug 2018 12:11:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcrCRvPjSh1eWchwkzYJJAZDpd8I15Jv0GB3i0AA6Kvkq6DxKibVATZSTTlROZh9RgkgZaw X-Received: by 2002:a62:398c:: with SMTP id u12-v6mr5932633pfj.9.1533323470080; Fri, 03 Aug 2018 12:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533323470; cv=none; d=google.com; s=arc-20160816; b=cFFvIFM3uU3Rg89SXKRh5l1vSXE8YvBpFcGLe0nwIvAUYiBfu44oJNOusrCDd803Z/ 1jXdT7cHjvkbwcRci9KHmDYdD7ShvaxfDseyGMfknTkC1Yk2dSiNXhGgc79G15nEfdjg WSN6FJhKNNT+shvFkQCX4/w/Dee6JystMu3g4xtCG3l/8mbIaQdmp+d/yiL8xZbIdZKV pYnjG6gEyNgP+PpyDAV5kuLcmmhVKnv0LpDFDlz16D+5yQMZ9u7y/yMRuEdMLsJaqkPW oNvBXPYbibiLWKMr5HnHI6Q0Vvvr7aNBQpZ5OmIhziRQ/5gFWGFIqXt5U2Xo3m48XwVS NlBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=mQVbg1F1o1Dvf0o4Ie0POP12zi5FEiYFmMb6+K/5+xc=; b=yTVT7kMkpJUtGYvCRErWS7rpE+ZyWD/9zi88+ePQZPzynm3n4//WCsZ+za83CzRKea y0ZckUA84VwboziTdslT+dzLfF2hmapPdyiU0lVHY4fQjDcUISyqk59OTDFNihiB+Zjs PzbVe0IJ9CmKCK5FjzPKuGvDejYGTuUSiUM+I7vxQEUbvBSHH9jdjp5DGv2JL5T5vuwQ qiS5Frdrl9/13GAncEQY/Tj6iosZjpgdvahYe2egRqc7RVfLt5KbQOWCQlAc4vcE8DV1 ap8ZPrKzv2165VUGGZJSKI+SOXRcRUghEhB4QtSRyavloJPWbXGzi86FnRn/VZMrkiVu nmKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15-v6si4247901ply.501.2018.08.03.12.10.55; Fri, 03 Aug 2018 12:11:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730056AbeHCVHd (ORCPT + 99 others); Fri, 3 Aug 2018 17:07:33 -0400 Received: from simcoe208srvr.owm.bell.net ([184.150.200.208]:50463 "EHLO torfep02.bell.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728246AbeHCVHc (ORCPT ); Fri, 3 Aug 2018 17:07:32 -0400 Received: from bell.net torfep02 184.150.200.158 by torfep02.bell.net with ESMTP id <20180803190957.ZQZT32387.torfep02.bell.net@torspm02.bell.net>; Fri, 3 Aug 2018 15:09:57 -0400 Received: from [192.168.2.49] (really [70.53.62.189]) by torspm02.bell.net with ESMTP id <20180803190957.QVIY31064.torspm02.bell.net@[192.168.2.49]>; Fri, 3 Aug 2018 15:09:57 -0400 Subject: Re: [PATCH] parisc: prefer _THIS_IP_ and _RET_IP_ statement expressions To: Nick Desaulniers Cc: deller@gmx.de, jejb@parisc-linux.org, Nathan Chancellor , Thomas Gleixner , Pravin Shedge , Kate Stewart , Greg KH , linux-parisc@vger.kernel.org, LKML References: <20180801182258.17834-1-ndesaulniers@google.com> <78c667f9-5c8b-3835-83eb-4b59e27e4f7e@bell.net> <54b2139b-53d2-01c5-f240-93a692cdbc59@bell.net> <536ef1b1-cfa2-f66d-4261-fb8405964632@bell.net> <80743c1c-2a8c-7bce-2068-24c63790eba7@bell.net> From: John David Anglin Message-ID: <81a7e33a-0403-b6d4-fcba-c2168a608ba6@bell.net> Date: Fri, 3 Aug 2018 15:09:57 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Cloudmark-Analysis: v=2.2 cv=DZT4krlW c=1 sm=0 tr=0 a=VCUqJnZSONuD0ISaPFNHjQ==:17 a=IkcTkHD0fZMA:10 a=dapMudl6Dx4A:10 a=mDV3o1hIAAAA:8 a=CCpqsmhAAAAA:8 a=FBHGMhGWAAAA:8 a=oo6BvqPr6ModUujxAbAA:9 a=QEXdDO2ut3YA:10 a=3WmcZs0_zLoA:10 a=PMXd7YaJusUA:10 a=66zSKFQpzMcA:10 a=_FVE-zBwftR9WsbkzFJk:22 a=ul9cdbp4aOFLsgKbc677:22 a=9gvnlMMaQFpL9xblJ6ne:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-08-03 2:11 PM, Nick Desaulniers wrote: > But the kernel uses the generic_THIS_IP_ *everywhere*, not parisc's > custom current_text_addr(). So if this did actually break unwinding, > you should have noticed by now. The unwind problem was noticed. Patches were recently applied to gcc and binutils to try and fix it.  The gcc patch moved branch tables to rodata so that the label at the head of the table wasn't in text. https://gcc.gnu.org/ml/gcc-patches/2018-07/msg01804.html https://sourceware.org/ml/binutils/2018-07/msg00474.html When I saw your suggested change, I realized there was another source of text labels that need linker relocations. Dave -- John David Anglin dave.anglin@bell.net