Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5378876rwb; Mon, 14 Nov 2022 03:58:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf5h632swNegq0Q007JIyNpNKhQb+YMkh4TvH8Jy6bY0hikSUpcZ548HhqwDo5VBj/3PhepI X-Received: by 2002:a17:902:a508:b0:17f:6845:9be0 with SMTP id s8-20020a170902a50800b0017f68459be0mr13297984plq.158.1668427087300; Mon, 14 Nov 2022 03:58:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668427087; cv=none; d=google.com; s=arc-20160816; b=ck67Svj5OLWiTy91Or/skEsNtNwc0OqSzzgfIv2xtf04t8Sk3fBs/RULno0no/8gzo cNyRCJ1/wnrKo4vg8KckU2iDEbF/VgWbs/yT7ZSfW17+Fp83xuUTHPN+CMt6Lk/J2g+6 Yq7RS+r47kWDNi1Rih90+X57E7nJcuSygs3Dtrw58Bw1HoZCDgt2vDxw4jR/MJo8w8Bn XA4k65Poc0j6OZbMb1Z95GleEDBfM+ksQjSq20uxB0j/cFh6FYlo4GrvyNITCWJhVBYN G6cJYv7D2+eEH0wJCCUKOc0yCR23GMSfwfPITEy46xRYALlJ6eNvwGXZTuD4BsScGXP9 F0pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0tL4tkr3jLhPhHhx70+H27UvslppZ8dylQ/Nqx6V4tQ=; b=k0k+krq9bKd1FQrpUeIzFAvl92RslEdzO8wgYBP0KQnF5CczgTvMBNoGDE/cKVfdbs z2GwdIS3L4wDmdqVpaQgAmWzaEz0Ym4Zv6htkYyCGApfWSXZflT0XkF6gLL+//NjzP8F DwBatqQaVkD0xXzo3R3rsr2QcNr/oz/GHLtQUHhQCii8fu6zs4ADArnI/8P/Rdte+t7a wKSbfKR1ruVM3v1vAJ7PUI3LYu4DF/K2EG5VdHrCo4yy7LzVvem6YgrWa8k+d9d4QSu0 xe77qqvmw70DS/mA7mC898jk4vFCs3jpZK/sp6CXEYd7nVL4UpsZSjwBFnapaCwUTuZ/ lAFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gDBhXqES; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l191-20020a6391c8000000b004703fc2ac2fsi9471257pge.877.2022.11.14.03.57.55; Mon, 14 Nov 2022 03:58:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gDBhXqES; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236850AbiKNLsK (ORCPT + 89 others); Mon, 14 Nov 2022 06:48:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236929AbiKNLr3 (ORCPT ); Mon, 14 Nov 2022 06:47:29 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 427C821804 for ; Mon, 14 Nov 2022 03:45:28 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id AD35DCE0FA7 for ; Mon, 14 Nov 2022 11:45:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3B2AC43470; Mon, 14 Nov 2022 11:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668426324; bh=ZL8klCP1h/76P9kKdRbQUqGgBjn+aOHuV9EO8AnyNpU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gDBhXqESy6UCVyjpxo3+gHOdn5+SwcoEj+Qouka4izFXaIPdOuHoSpb7k+SFn8oth VXuPpZRMcCBKR4Xw+OevAnNvdq5k3eMN/i84bvYUEFHdPDd4BoFx9FtnmgrO0i3xRF ivayV7hWJ8m3iLSTe02S8hRElQjKacFRyR9IFaoD2gauyajwW1hT/MaKiV2ShRD6gO h3+tgaW552ZpfxVqw5BIYEsiDZJyWkmNMXCqtQiX7sOBj10i/5f6pWmcc9K2uBFT6o lMzmLMQTMKOFTTaa+kz3osbkQX8JW+Evh3eViaTG6NbUHImSKEWdb0N6ny77tLWAw3 uuw6XHCb0q7zQ== From: "Jiri Slaby (SUSE)" To: linux-kernel@vger.kernel.org Cc: Andi Kleen , Andi Kleen , Martin Liska , Jiri Slaby Subject: [PATCH 36/46] lib/string, lto: disable gcc LTO for string.o Date: Mon, 14 Nov 2022 12:43:34 +0100 Message-Id: <20221114114344.18650-37-jirislaby@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114114344.18650-1-jirislaby@kernel.org> References: <20221114114344.18650-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen gcc can generate calls for string functions implicitly, and that assumes they exist in a non-LTOed copy. Mark string.o as LTO disabled to avoid missing symbols at link time. Signed-off-by: Andi Kleen Signed-off-by: Martin Liska Signed-off-by: Jiri Slaby --- lib/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Makefile b/lib/Makefile index 59bd7c2f793a..bf72b58de5c8 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -27,6 +27,8 @@ KASAN_SANITIZE_string.o := n CFLAGS_string.o += -fno-stack-protector endif +CFLAGS_string.o += $(DISABLE_LTO_GCC) + lib-y := ctype.o string.o vsprintf.o cmdline.o \ rbtree.o radix-tree.o timerqueue.o xarray.o \ maple_tree.o idr.o extable.o irq_regs.o argv_split.o \ -- 2.38.1