From patchwork Sat Aug 11 09:52:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 10563393 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D05D913BB for ; Sat, 11 Aug 2018 09:52:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA0902855D for ; Sat, 11 Aug 2018 09:52:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 857C129271; Sat, 11 Aug 2018 09:52:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 067EF2855D for ; Sat, 11 Aug 2018 09:52:53 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=gomqjhu5kDZYT5nmt5/mjdxyvXddCLvd46ZQGxw3bKc=; b=QWT szf6Qrb5pOk46023OEWhxTp9CdyGJKyY/omZsPA0iod38ovrBpB2188VdsG6WRn7z/KyU/GUqXqaz obqCLB4NHYfxZxIGdFZkqU8peHF1pQ0EsYRZ7+mVt5Gp5RN+1JqnncsVoWvRfCw2mWKwOc0RI2hvm AHDls5RYeeRvMVXKJmfMfhEMjsFi1JB5hsPGwYFPxL1TG9EASSSrumLLS0OZqeMo4vxplUBBE82sj HLm1TRfWJ7GxIZKCY/Rrs8HIJFVDeh9wUQdmoQsquvDDYryblokxxLtmf6K4SQLLxo7cyXqdmLSlG zRIa7UWOrLuOiWSnc93nQKQvpYT9j2A==; 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 1foQZo-0001BX-7U; Sat, 11 Aug 2018 09:52:52 +0000 Received: from mail.kmu-office.ch ([2a02:418:6a02::a2]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1foQZl-0001A1-MC for linux-arm-kernel@lists.infradead.org; Sat, 11 Aug 2018 09:52:51 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180811_025249_894702_01DED725 X-CRM114-Status: GOOD ( 13.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Agner , mka@chromium.org, linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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