From patchwork Tue Sep 4 20:45:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 145961 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4124684ljw; Tue, 4 Sep 2018 13:46:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaE8EkJiLHmDgrV879qCYX2NvJeoRZp+x2QhklE2JaHEIbNx1nKq57Kb5rS+EnelhGVcQ9h X-Received: by 2002:a62:f208:: with SMTP id m8-v6mr36633443pfh.222.1536093983475; Tue, 04 Sep 2018 13:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536093983; cv=none; d=google.com; s=arc-20160816; b=odruintPTUjsSWZQgB0fRZkNgKdYCbcvHvibb+jTxcGxCyv4P7XlgbM8qEFCQK3dRM /aVrZkICJbWtLQjZ0MJXErRpfbVa1Is1GtafSe9NWa9Oy9gyuULTBWP4Ykk1LTHCGxaY QXh5HaYt0Q1c4tcrwhUfIkiwKwTdlqsbFFAPTgzTZKjVPXj50D4l8v/kjGgfoZIjvnpF Tp13FKUBq3Wb2L440tffN06p9/tgKnoIuqgLFrvZt8/kxM4KaJYDd+GISW90Cbu2uudE 9NQayQUeyRr6IjZx1oq2WMe64CNeeNnbZaHC8FzRJKnvzME+XPBWqpPaycVaRSLpcPC8 3VXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-subscribe:list-unsubscribe:list-id:precedence:mailing-list :dkim-signature:domainkey-signature:arc-authentication-results; bh=z6syHtHCWrgj9RiLSJ+/9AtrA9cOzR6jFkjRK2P4H5U=; b=G08ar3ZwAsIgJap5GR3pZRUKiDBePnPENff3hBJxBy+W/U5zjUMvNIks3X1abk2BVC /Xx4/rmGvJzwqvFjd6gUiJzlcowVRKlecdFaWlxdj/9ECThUuyBBObwF16pz/DfbeorJ bVA5ODQwFQ5b5b8h6QPPfw7AseJPivb2FcFrHv3RxTfNgMUJcY+8YfT55hmjRuQTiagi Bg6GetEbg74rg9LvjmYZyok3uSs8zcv29KX34pkXQNft0X3JYj0gnsIQTLahpxDZL5+R 7xSeeK1PFxgX31Jh4rP/JM9ZJEaa/bEEV50sRShn0l2YMZV3cfcc7amQWHlpfKgU87mh GVZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=NiPvVDgj; dkim=pass header.i=@linaro.org header.s=google header.b=MWmoso7P; spf=pass (google.com: domain of libc-alpha-return-95668-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-95668-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id j135-v6si25440213pfd.207.2018.09.04.13.46.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Sep 2018 13:46:23 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-95668-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 header.s=default header.b=NiPvVDgj; dkim=pass header.i=@linaro.org header.s=google header.b=MWmoso7P; spf=pass (google.com: domain of libc-alpha-return-95668-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-95668-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=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:in-reply-to :references; q=dns; s=default; b=tF7P8eoIN5EyPxLuxWIFNIKsEml7xXT iOvfgRKjguCcQNqTw4Dy4hftXrO+k8eL6rEWZZY/k6jqk37Sw77fL81C1neuRj97 aWb/uSn5u/XzMKqq4KfLp+ovJgdCykSk3tEanxSz/KDLxjZnid99V6h3hCmuYGSk QFjyHdpMLPlI= 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:in-reply-to :references; s=default; bh=iIarNJIJiCc4hX/hgCJjjgkMS/A=; b=NiPvV Dgj1MdSXhIrdFoZ8HqenF2wdFt9hg+RnWrQeH7kNI9yC8n+XNcHLkaJrS0oxzvrc P+4XBFMI/BlFvCgNlvP7OisR/8UuwkjYVRDsQ/BC+vQ/70P7G9+7lDobBx7qtPtk 7u0ANSWeon/lT8rmLiiN1tRGt0SAmKZqt+QqCM= Received: (qmail 33636 invoked by alias); 4 Sep 2018 20:46:05 -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 33510 invoked by uid 89); 4 Sep 2018 20:46:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SEM_URI, SEM_URIRED, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qk1-f176.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=z6syHtHCWrgj9RiLSJ+/9AtrA9cOzR6jFkjRK2P4H5U=; b=MWmoso7PUO0bIPX78kX0/6U0giCD3c2upKVPzB6+8DzZ21vMgMDWZ/EEEQ+CjrFIG/ L7DaqyCumQipX1uGJzGfgm6PQ/3z20CZP/FEFHCFPb8aiQ9WQ3m807YzPfj/aYSOD5lt 4J890Et2GGGiYsueyKPaGuhXZ0GWUxP6Mpp2E= Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 1/7] powerpc: Add CFI information on indirect syscall Date: Tue, 4 Sep 2018 17:45:47 -0300 Message-Id: <20180904204553.6971-2-adhemerval.zanella@linaro.org> In-Reply-To: <20180904204553.6971-1-adhemerval.zanella@linaro.org> References: <20180904204553.6971-1-adhemerval.zanella@linaro.org> This patch the required CFI information on powerpc indirect syscall so backtrace works correctly on signal handler. Checked on powerpc-linux-gnu and powerpc64le-linux-gnu. * sysdeps/unix/sysv/linux/powerpc/syscall.S (syscall): Add CFI information. --- ChangeLog | 5 +++++ sysdeps/unix/sysv/linux/powerpc/syscall.S | 1 + 2 files changed, 6 insertions(+) -- 2.17.1 diff --git a/sysdeps/unix/sysv/linux/powerpc/syscall.S b/sysdeps/unix/sysv/linux/powerpc/syscall.S index 2da91721be..e30f461a17 100644 --- a/sysdeps/unix/sysv/linux/powerpc/syscall.S +++ b/sysdeps/unix/sysv/linux/powerpc/syscall.S @@ -19,6 +19,7 @@ ENTRY (syscall) ABORT_TRANSACTION + cfi_def_cfa_offset (0) mr r0,r3 mr r3,r4 mr r4,r5