Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp936066imm; Sat, 11 Aug 2018 02:53:41 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzQn8dqJLAmmPwHB7BPumerdh0odaTrho88gBFr9J4TzY9eAPNCsDCi56WN0aueVj1VG5tx X-Received: by 2002:a62:e218:: with SMTP id a24-v6mr10850832pfi.75.1533981221325; Sat, 11 Aug 2018 02:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533981221; cv=none; d=google.com; s=arc-20160816; b=fXbjvRbOZELM8/Rr/e+b+bd32WDygsEO1Xnrc/hhqxBxMn2L+esVWm+r8k8p5N7fPW bHaTN2deu4vi42PSO+gYo6hRhdEHad+ir/suwaH7BvYxVpY+mFut0yvVSZA4uSUhpNGk ZTeRHxc4JvCD5+i/rICPrsVn9uKe4FuhBQ62B6n7erNHPFzwphw7GJriXp0zCaeQ5sD6 JKf2neCkXzfwlQpfspuRSdDTfrKcpz/IHV/OtHrczmu8E81M0mYxknZWokLSBW7d/2Rc n5EcGNjlc1s0gKuccpVwDbnMin4ko2KMSoK9HpszWtaIdSrKTrB+SaaqTkg3Uyj1sRh+ iUGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=kFAHeYhN1rRh+fKT4TJKu7jbX2C74qlkpx5L3b2bubw=; b=fBpGXZKhPXWPKS8WhXGelvD7IN7ThGYgysMUYE3d0ZuuYAQhjTo9EpYqqh9kmcn6iC lR8OUdZ07OnOuhwzbxAt6PPOBJx2gFH1ABL6Ls+8N4eoPdUhrHNRFxP01yomoApApiM4 AQXsmh5q+IzP90TQ+Bho7bGSZh55e56HATirNT/uOTLpeqtjULjvdY8cKnmPxx2eFRap F0fu79TNNJtEP9nEi3oxlWzOgfrWw/86GA0heiuSWODdqheSgQ+rxCwTosZC4GGFkE5D rqW2VI+7O7dnwYsLKx7KQ9hTvDhjQxnVso9/hL2Csdnbhw5A6u23HldVVK1agX5k5gcU 49qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=PkTxWjU5; 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 s5-v6si9955023pgo.466.2018.08.11.02.53.26; Sat, 11 Aug 2018 02:53:41 -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; dkim=pass header.i=@agner.ch header.s=dkim header.b=PkTxWjU5; 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 S1727331AbeHKM0S (ORCPT + 99 others); Sat, 11 Aug 2018 08:26:18 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:49616 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727219AbeHKM0S (ORCPT ); Sat, 11 Aug 2018 08:26:18 -0400 Received: from trochilidae.toradex.int (unknown [37.17.239.3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 91FAC5C0487; Sat, 11 Aug 2018 11:52:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1533981156; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:content-type:content-transfer-encoding: in-reply-to:references; bh=kFAHeYhN1rRh+fKT4TJKu7jbX2C74qlkpx5L3b2bubw=; b=PkTxWjU5G6GRfATh3vy+t/mOVSB6L71CZjtVuF7U7rvYoq5ccma5/H3Uc809FTglA3DfIW YZ+jF6sKmeQuCyALlBTlGwTM6mA3qLU4mPbrGBwG+tZwK5cmoQuE+P0EvVDLp+ufmtnDTb juI3A5i43uzoPB9H7lnZGzfcbwUuHX8= From: Stefan Agner To: linux@armlinux.org.uk Cc: arnd@arndb.de, mka@chromium.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH] ARM: require GCC for FRAME_POINTER Date: Sat, 11 Aug 2018 11:52:35 +0200 Message-Id: <20180811095235.1938-1-stefan@agner.ch> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To produce a meaningful backtrace with FRAME_POINTER enabled the kernel needs a specific function prologue: mov ip, sp stmfd sp!, {fp, ip, lr, pc} sub fp, ip, #4 To get to the required prologue gcc uses apcs and no-sched-prolog. This compiler options are not available on clang, and clang is not able to generate the required prologue. Make the FRAME_POINTER config symbol dependent on GCC. Suggested-by: Arnd Bergmann Signed-off-by: Stefan Agner --- arch/arm/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 693f84392f1b..cb65cf67dfa2 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -54,7 +54,7 @@ config DEBUG_WX # n, but then RMK will have to kill you ;). config FRAME_POINTER bool - depends on !THUMB2_KERNEL + depends on !THUMB2_KERNEL && CC_IS_GCC default y if !ARM_UNWIND || FUNCTION_GRAPH_TRACER help If you say N here, the resulting kernel will be slightly smaller and -- 2.18.0