From patchwork Tue Feb 20 21:59:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 128980 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp5105664ljc; Tue, 20 Feb 2018 14:01:43 -0800 (PST) X-Google-Smtp-Source: AH8x224FtflKDLED2p/8m+w2TsRB6mZCQs2fiyh5toouNdfeV+gykLOX/fb63GnRX1TnCfcfb2fv X-Received: by 10.99.120.201 with SMTP id t192mr839094pgc.39.1519164103562; Tue, 20 Feb 2018 14:01:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519164103; cv=none; d=google.com; s=arc-20160816; b=qmR82edHldpQSoGgs84OVABUG7/X0Pm9uMie3UDBaMYuASrJ3jNObup4ctEK2sZ+dL Qef+PRt1NJGgLVtjOLxgNDrczs0acNEN9tlC0UDyFZc2H6nld1g13AeHJzRDq41TTIwD z089pxuO1z7y7DSn3ySFttyMFoTe9IvcurosWOeswJ0CN+eo0oX8F8VyR+06QhOZ8/aY 2ATpHx2FkLEKf9nGiWJrTyNGX7NxuPPNAtqx7jX5mcgJoG1eZHwvINP7JmUoeBJKecq9 Gx2i3+hBGZ1xC9lo2iiNR85CngbuOPD1MvuEtG6JFkSwI8/Pp8p7TqMi0O/ODFT2iAFh nx8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=6cvg+gSAbZqIStNrD+h2cPClCRjx+gbR1ms2/njHTMs=; b=ylo9nPAwkhffDb0AgivVJvuAeiaOg0Dakbp3jHG9R8AqbuQ9ULrr93HIcm/UxPwKKk Re5vJcEyrjWynX8o7eq4NBwmhdFyqVhGCubBBD6ojSqPlelWPiywCY0mRouM3xodPyks VAA9fTzUQ1ZOhaoNBoQTCvDC/5s1r6mSv4xS/3sAm4o1RXslQp9ffsJu7k9MQGOlKMjf DbFbzh5X0FSzWWb74uAePkOzYpuCdISkgO0k0m8x606h6+3cku92jRXctHC5l+O0ScMe pPxL/UY0UYOFjfqE2ZUTw/KzlXSpYRYcMfVZhm3beQ7VU0upQKEZf+EB6HUNj2HyxSNH TyOg== 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 e125si5419363pgc.506.2018.02.20.14.01.43; Tue, 20 Feb 2018 14:01:43 -0800 (PST) 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 S1751503AbeBTWB1 (ORCPT + 28 others); Tue, 20 Feb 2018 17:01:27 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:34563 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751233AbeBTWAU (ORCPT ); Tue, 20 Feb 2018 17:00:20 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0McWDw-1f5vKQ0R3Q-00HjYD; Tue, 20 Feb 2018 22:59:58 +0100 From: Arnd Bergmann To: Nicolas Pitre Cc: Andi Kleen , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 1/7] ARM: disallow combining XIP and LTO Date: Tue, 20 Feb 2018 22:59:48 +0100 Message-Id: <20180220215954.4092811-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180220215954.4092811-1-arnd@arndb.de> References: <20180220215954.4092811-1-arnd@arndb.de> X-Provags-ID: V03:K0:68CP8D5zJQFwnlFrJ/irQ54USuaEt6O5wK4lDMNIAyakOc7alQ2 eQ/4aC76leERsEA1T/DOpfDW3K4PVo1T2mnzXFqPQcRtehbPZ7cWo+lyDWD5TrH/jpHm+Al O6rfVaM83JPtqeAt8Y1P20vq4NwFY3JVBIAMLaLrP9sKNDGE4tUB89fgY/kzu4Uojy46pnm NXE7vMpvOdbTDISlPrJpg== X-UI-Out-Filterresults: notjunk:1; V01:K0:rR8Kc8pDCKk=:ndfU5F6i9ZigA1mfZqMVBF Q38QVPhjLkB5CoVuApUGOAk8hNVq0HX3eZQ4eXGL85WY2OT4Q6gw8hBfSzdUDhYy/sCtb7qMn A0K4SkY5VbnEmYfmKklZUeQraieZ4JSysqCxIVSf3WyPAtWRTMvbTQBY47fIxU1iQ4TfUbHyH 3juU7cLJ6mufH6oO0RYg1CwNGeE5l0tsLR2vOwBEHWlnEwqTWGC06u7OqlQrWXg9Iqp7mFC4o CZRqfG2SIYwgzrk108RSK0vdTvID7/eVM0Vaqcw47y6gTVN9WyXraD6ljkT0pHh5RfYxSsHDV ZsTHCXDKOFRhX4nMatMPgVVwQPfhQ9R7hh1B+kXDsuRf5tRvnmq6KGzfhZHhsD4aRyKS1xg33 p6wz2dKp6K/mL1ettGP13zC7VGN5fO/yD/qKPswkW6pXxjGGKCG7WeBxBNZk7Y9XSxlyo/6AU 0ej7nm9URsuhYBW0zXfV0J1FSSmQ/8e4VNSOIAY4jcpJbZT0nVXaCOsp2UJegvcndGsUXY3CK N5j1PLqE1XOE7njy+UDgyOgPtPHb5oJMZMNMhVPKY3myyqIrBx9w4+HTcbngUeOET7UbcbPbC d436lrCgQ5N9Q25jMRcihWbaZZGVG0rmgF2cu0ykrTrvaVZbUGt+KQo1Tuj6QP62AfuUwtDtg oRxmud2e67XgFnW+RJ1TsUyJ3NBfqroVPyYzV0AoXSoUVSLB6nvLjg9w1PowK9MWxrR7HpJYn CXjbSqmozplKYfGX3crpAsbom6YEhMt+p8yX/w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fails during deflate_xip_data.sh /home/arnd/cross-gcc/bin/arm-linux-gnueabi-objcopy -O binary -R .comment -S vmlinux arch/arm/boot/xipImage && /bin/bash -c '/git/arm-soc/arch/arm/boot/deflate_xip_data.sh vmlinux arch/arm/boot/xipImage || { rm -f arch/arm/boot/xipImage; false; }' make -f /git/arm-soc/scripts/Makefile.modpost + sym_val __data_loc + sed -n / __data_loc$/{s/ .*$//p;q} + /home/arnd/cross-gcc/bin/arm-linux-gnueabi-gcc-nm vmlinux /home/arnd/cross-gcc/lib/gcc/arm-linux-gnueabi/8.0.1/../../../../arm-linux-gnueabi/bin/nm terminated with signal 13 [Broken pipe] + local val=ac74c0f4 + [ ac74c0f4 ] + echo 2893332724 + __data_loc=2893332724 + sym_val _edata_loc + /home/arnd/cross-gcc/bin/arm-linux-gnueabi-gcc-nm vmlinux + sed -n / _edata_loc$/{s/ .*$//p;q} /home/arnd/cross-gcc/lib/gcc/arm-linux-gnueabi/8.0.1/../../../../arm-linux-gnueabi/bin/nm terminated with signal 13 [Broken pipe] + local val=ac7b8744 + [ ac7b8744 ] + echo 2893776708 + _edata_loc=2893776708 + sym_val _xiprom + sed -n / _xiprom$/{s/ .*$//p;q} + /home/arnd/cross-gcc/bin/arm-linux-gnueabi-gcc-nm vmlinux /home/arnd/cross-gcc/lib/gcc/arm-linux-gnueabi/8.0.1/../../../../arm-linux-gnueabi/bin/nm terminated with signal 13 [Broken pipe] Obviously we want to make the combination work, no idea why it doesn't. Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 Signed-off-by: Nicolas Pitre Tested-by: Arnd Bergmann diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 823e397ee0f3..8ed0f664f86f 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1976,6 +1976,7 @@ endchoice config XIP_KERNEL bool "Kernel Execute-In-Place from ROM" depends on !ARM_LPAE && !ARCH_MULTIPLATFORM + depends on !LTO help Execute-In-Place allows the kernel to run from non-volatile storage directly addressable by the CPU, such as NOR flash. This saves RAM