From patchwork Tue Feb 20 21:59:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 128974 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp5104318ljc; Tue, 20 Feb 2018 14:00:29 -0800 (PST) X-Google-Smtp-Source: AH8x2240RX1uzI0sNTzRflElFRz0OUjQjS/DXNySzhleIVmTQHASlXkfa0gvpqXifPtia1nHEMsm X-Received: by 10.101.75.11 with SMTP id r11mr864464pgq.36.1519164029759; Tue, 20 Feb 2018 14:00:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519164029; cv=none; d=google.com; s=arc-20160816; b=o1Fb0qusk1mddQ19paLbU3Y8+IQB65y9FzxDhzzfNhOzQR42iCypMdYjaLqZDZwTSE OIb9q9RFfuT6yz39dmjZlyFQm0pfwdK11KmNbIme6Soygy4Pb7gMtIwxXWToPlhGLUFk fCr4QsTudwdz97Pm8XbRa08VjBbyceeocTXuEf9b7K1jXZV06OKPprZGXw0SenIwfJDi WKs/SuZSpls/8jv1WXagqNo5DYFnWQCOzOBsBfa0844sw20NHrP/RJttEfmmHC4DmUOv hJTyHflNoesB7hzx6A/hlEgxqoTfcY8iyHxidh0y9M4UY56M2rnEIAgm9MMzarmF0hSe jykA== 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 :arc-authentication-results; bh=cj2hGxWJEMQcZ4PaSg5dr6h/C+GhaTa7DKSC1xFIvxs=; b=lCegIpdlui4eGMiFFyHw4IY3vI2GIQFu0JLwq/mV387rVrWSDmzhAuc39W6NSwTxm8 DBtefMAdOCSm0Ew52i9hOU5wg6b16OyGlYG9RqtCwhmWMp0mJsSt86TQl8y82Maaoj2k 0R5enG7F9dOAzsHGd1mcy0K09PO9pK88wBTD2of43CP1xSnzb+/0+BcJJHxBpSobA76N 1k1AhboK/BnNmwufJnEi7CDEEKt2I+BUlnWxMUNR7GhhTaHNVI1VJmjaf62554OlKmuh 9O8SW0pqKwCpDavluMEVFCgsJZT7oReg/oWLK+mIe7E0VnYQMZXcGwqhCH7H5aNM+VGu e8fQ== 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 d13si184901pgn.366.2018.02.20.14.00.29; Tue, 20 Feb 2018 14:00:29 -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 S1751376AbeBTWAY (ORCPT + 28 others); Tue, 20 Feb 2018 17:00:24 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:40517 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750858AbeBTWAT (ORCPT ); Tue, 20 Feb 2018 17:00:19 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0Lp6Wq-1eICz33ULU-00esbJ; Tue, 20 Feb 2018 22:59:57 +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 0/7] ARM: hacks for link-time optimization Date: Tue, 20 Feb 2018 22:59:47 +0100 Message-Id: <20180220215954.4092811-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:o7f1Gn6TLGoH5jFDw7L/c2+UGbV0/dLfe6G4NgixkWqOp0+3WlH NwrKZ4Vam26XzvCcpkMj+mPLeiIslJYMEyqLpyfh+zldg0yNMDYEt1k6P2wUREClYOnFLf1 x9YyxlnAvcql4IuqJv2oS/yBbMEUFL4YS5ONXZ2d00rpVKXxL2zYTfmJp83PIfu1t7F1wvr yjsAKEBNFWJujgCDxDI4w== X-UI-Out-Filterresults: notjunk:1; V01:K0:Mjh2PvRB9Ms=:ik2PVyf6UHj+AoTsD7ASQT LdtmSj+2lEeZU1oiYQYempbFNMbbB1AUbOM0rAbmd51R5sEpcvhORpVmef7HEgJzCCfPt2zfr /kehXVDARRHZKTZiRRHmDC7DG4jruuCzbikdmHfA7dL9h+6HN90gp7yek0rMEg/1T4rrZ158C BYQsGKe8m9TKPC6oTJ0Ognl7he+wGw8yyXKNPpDoOuS1YO3/HYC/TG5WA6YAepSaf8kpX6sI5 XbOXBPamiVX06puNIylA+72zvz52+X/eVNr2fdbA9z63KzAXbFCAROlkuOUb7IHHSzjRM3enz 8GU/sOn7Sy+hiBESWOar2jlZEzdF02a08GtVCdBIsU0ewzvzfsEaIx6vp+t4xSMFwFdFqW9FW NiMeMCk9CDYSBwb7jNpLR6CNzmIzzlRn3JA7lap2PZTfCtj42CV1bvqx/faiByeMzuInQR9du sNQrIZqWJZM3TqU0kYko0u/XuVgg53eRK6WQ8wnawnrK40a/742oUgXt+Q81sm/L1CxXL15u3 +X7TBCgar7HROKurU9xXxtOV1LX6cdhxyUf6IZc1PzyF2PsS3ndmB5rBdSgCRnb55KIIbXexs j1UAvtHGynfc+dQT452vSBcfEdhwsWhoOcWEbrtdV6rOFfkMmZ2Pon7xloE0o8yXKGKAdbttP OuncO9ocM1r64hjUKjj6om96slzRgLu9MDq+32SXQcCUuZuDdQn6JdXc4SBNPt8wkLtoze6Eu 94PTbYJXg0OtTq06M8Di1Tm62W2dXrvRlEIvuQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nico, all, I was playing with ARM link-time optimization handling earlier this month, and eventually got it to build cleanly with randconfig kernels, but ended up with a lot of ugly hacks to actually pull it off. Here are the ones that I don't think we actually want to merge, but it may be helpful to have these for reference for the next person that tries to make it work. Arnd Arnd Bergmann (7): ARM: disallow combining XIP and LTO ARM: LTO: avoid THUMB2_KERNEL+LTO [HACK] pass endianess flag to LTO linker ARM: io-acorn: fix LTO linking without CONFIG_PRINTK ARM: fix __inflate_kernel_data stack warning for LTO ARM: mark assembler-referenced symbols as __visible efi: disable LTO for EFI stub arch/arm/Kconfig | 4 +++- arch/arm/Makefile | 2 ++ arch/arm/kernel/Makefile | 3 --- arch/arm/kernel/head-inflate-data.c | 3 ++- arch/arm/kernel/process.c | 2 +- arch/arm/kernel/suspend.c | 2 ++ arch/arm/kernel/unwind.c | 1 + arch/arm/lib/io-acorn.S | 4 ++++ arch/arm/probes/kprobes/core.c | 2 +- arch/arm/probes/kprobes/test-core.c | 11 ++++++----- arch/arm/vdso/vgettimeofday.c | 2 ++ drivers/bus/arm-cci.c | 6 +++--- drivers/firmware/efi/libstub/Makefile | 4 +++- drivers/soc/bcm/brcmstb/pm/pm-arm.c | 2 +- lib/clz_ctz.c | 20 ++++++++++---------- 15 files changed, 41 insertions(+), 27 deletions(-) -- 2.9.0