Received: by 10.223.185.116 with SMTP id b49csp595801wrg; Wed, 21 Feb 2018 03:51:41 -0800 (PST) X-Google-Smtp-Source: AH8x226z1K3Jxlu1H3PLLDb4/B70q0wl/sI1vzyAJR29pvFVxF4wDlS9EN1ddeos17rt9PAnQE+I X-Received: by 2002:a17:902:6782:: with SMTP id g2-v6mr2961773plk.19.1519213901871; Wed, 21 Feb 2018 03:51:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519213901; cv=none; d=google.com; s=arc-20160816; b=TEpLCfpX5MpCpYx1u9wuK1gOfWsLB6spKyur5qmsUJwasGoqRtbg1zwajBbKBXb0Ay R9pFcNiQojclc2d8L3PVbVvi62uZGcNi1Z9lXioz/bHqyiEPNuk/Hd7qyKzLNNZCHkNK uld9u5km1PfooADxwk69hbheIc+ppHRl8TwMufnYZ1xe8GpItxj9SzcafvEJRBiyI/f2 8hbbAMGUYjztZHf3yU1XV7kXuOgrHG78mLeoxnOmHZm7acKcKETUL+6UdiYuo/Nib7q9 Wmr/RtwikwlnP1w9fCIcXCdxAgDRWl3rK5NPEnLdo5oLDEvAEOS2HxcoSQaTFRF03ijy Fq8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=FkjqhxFgIuhMci0Q1zmM+FVApR7Jjy/Cl1l2N/B7VUw=; b=IyM28uOlk7/L7LrryGRkh+NfiGbap/L5A7nrxPHzQjFcwaXOqXZecjKUddltGD4S6I lNMX8GSx9VUiPaL9WCnybvCqQnTTsYkALJxOuzETIwpyDw9+lmuxf98RylAIbWWjWdO+ gKb7VlulKHwAPyyxXjHGd5rGEBFMH0zxwtaQxreGI0wgUNOqtPRZp7b1l4EE+w/Y2+3v 1RnbqjstCxc3kiZVk2QIyszObNL+aKPVb2oqDgWnbPEvEt6nyD3nW2QgWXlbCZnmlzWR mXfyUmLTOAY8LVL+L1zhFxcJcbew+nDXQgMInO3PeBjFOJ7pM26wuOObly1NiFo8o3hi tjrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=GL30Rwec; 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 y1si1350176pgv.234.2018.02.21.03.51.27; Wed, 21 Feb 2018 03:51:41 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=GL30Rwec; 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 S933678AbeBULul (ORCPT + 99 others); Wed, 21 Feb 2018 06:50:41 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:45531 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933665AbeBULuj (ORCPT ); Wed, 21 Feb 2018 06:50:39 -0500 Received: by mail-qk0-f194.google.com with SMTP id g2so1509617qkd.12 for ; Wed, 21 Feb 2018 03:50:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=FkjqhxFgIuhMci0Q1zmM+FVApR7Jjy/Cl1l2N/B7VUw=; b=GL30RwecXKwYz1kbhqkXM0Zxyeq7k7+ZD25qJg6/eCgSHxf1c/Y5h3LEzletPJUq7H Kzh2MkQSaYNqNteWV8vfg2QyxXgllbNQzVGzKh5eIQelfzKYHlOxJ253WSvpG45HkYMI n/Tp9xoLI57rJ+JqrM++oKUhZaGnawd5jI1KDsmc+SXYHzSnQ3dCKPInJexMuBUsPOf9 HrTOl0enBI3urmSf60wEHlHMzJ9A3kJ0ewWpGBAn4HVDMdKMs5zoIOMWk0dowFhkGkQc WUPudGSpA07tt4Rk3giqyQZXMiiZZ7Q77Gdw3CUL7ukta3bzallRd41hFjyzHnhXA4dc zoGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=FkjqhxFgIuhMci0Q1zmM+FVApR7Jjy/Cl1l2N/B7VUw=; b=UZ9fOQFPlZ6x031LZ4Yys8h+Z1oFawugGJ6A4mCztvQ7HZhhDgJqQZLw/pCnfQhf6u 7maEyiSo7v4hdCBdQq0zaDGvdDFoNSiIIU1yd79rv7tk7XIy1C5L4nan1o/9aHQMyn35 xM9oR1aJxoNjC3VzEggE4vKCqzQqf98H8a0idFMpx0qPLWleX4kMHcSrBFglleSYRvh8 QBMWieP4tcf71KCYJwZLClMphq3KWKVTTLFiAjnC5Mc81yn5h/FGiJnl+w4XRCcqknzW sqy0LXyvma5QmZzsq/eSM7VR+UU6Hz1l7UB6fWcQ7SMfk/ThpOliD16AIjiHkqDPRT2r KZIw== X-Gm-Message-State: APf1xPBD7dkTVBKfioLOklEfypwgm/OuBvarb6tnY/Amb2p0Xm+dgXDo 5cEZjJuMbNAX4PGtvbyGAK0cAdnSsSKveYpHRzk8zw== X-Received: by 10.55.113.69 with SMTP id m66mr412684qkc.84.1519213839116; Wed, 21 Feb 2018 03:50:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.198.17 with HTTP; Wed, 21 Feb 2018 03:50:38 -0800 (PST) In-Reply-To: References: <20180220215954.4092811-1-arnd@arndb.de> <20180220215954.4092811-2-arnd@arndb.de> From: Arnd Bergmann Date: Wed, 21 Feb 2018 12:50:38 +0100 X-Google-Sender-Auth: 2SoowuwhsTdA0xCKzBlkuF8TIHk Message-ID: Subject: Re: [PATCH 1/7] ARM: disallow combining XIP and LTO To: Nicolas Pitre Cc: Andi Kleen , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 4:01 AM, Nicolas Pitre wrote: > On Tue, 20 Feb 2018, Arnd Bergmann wrote: > >> 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. >> > > You should move this to config XIP_DEFLATED_DATA instead. Right, makes sense. I'd still prever nm to not crash, but that would be a small improvement. Arnd