From patchwork Sat May 20 20:55:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Edwards X-Patchwork-Id: 1784178 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=Bun+vp9/; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QPKlB15f6z20PS for ; Sun, 21 May 2023 22:34:14 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A6E47847C8; Sun, 21 May 2023 14:33:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Bun+vp9/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0A22C846E2; Sat, 20 May 2023 22:56:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CC8D884794 for ; Sat, 20 May 2023 22:56:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=cfsworks@gmail.com Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-64d3491609fso1265651b3a.3 for ; Sat, 20 May 2023 13:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684616160; x=1687208160; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RMpdJRBjBEIUca7q3ZTUw9UgCheItfbwXFX/+RJx0L0=; b=Bun+vp9/avhm79n9eC87KiPwVcAAAxVoNyVDcSQ9aE9x4IbYKiy7fQYoSs9NUcwRI9 mNpiiblzP/jEWnKNXkwzhdIGHTPy0+WV08jWkHVhaZbiGwaFALyzjsuYkFzj12XCTcyH gL5aZ+hh4IYILqFCga5hI+oqORmHTJY/5z4d319qUkRX3iQSnMVZiQHdOI8LZWyaxc2e StvIMlVSGhXMNNwSMoi5SMM48QvNjtgEkMKQx8SggiX1HDJbMFZY+4M5tYMvEbaeu4aH vVK1vZnyemLu00TOd+5sreYu2VE/UxC/zxquiTxJBF0Wh6/DGJT4vA6ixRRjnBZY1l5i SMHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684616160; x=1687208160; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RMpdJRBjBEIUca7q3ZTUw9UgCheItfbwXFX/+RJx0L0=; b=lFhTJ1AoV9U9ls4bAvUMTjdtP3zBtn+qr6uMOBaeYMwfjURiquiyVqYLPzwOk4WALn 5rUTGQCy6ZIL+lN0btsQxQ9BCf8qBfgad/wzmNDU5dOFqPskm5h702RXbTpScAMz6oUe hh1TfiI0uXRuMs3+gL+tlARf5K2YhWUIyJae97abN6msktb59i+/woABpo33Y/J7IfKD jFuosaWZZfcq2uleJhRqUg/t4YjQ/r2BUf+X0ASgo4jyyD8Gs0/QjW9cPYwjz8Lf8oxe 1gdWjfZuuJqJN4EGC05T5S1I9c5fkpnndD1QK0izvK9K3uZm1IB6W5AkF9qqbUnR/BXJ W9Gw== X-Gm-Message-State: AC+VfDzwnPYE8fAPyRIjo/McM40/wt2ifTGvPcClKc8U7/LjDuNtUGGW dtdJ3Y/wy5SCKpOhbT6BbhqveHxMfnwVHWYl X-Google-Smtp-Source: ACHHUZ5Y7Ur10BN2tl0i3dP8EXYVgaDVZrVRYkgkOnIlJx0xJvd+SKsc6i1xUdsijJaCXgWpS0gqVA== X-Received: by 2002:a05:6a00:1486:b0:645:d02d:9a83 with SMTP id v6-20020a056a00148600b00645d02d9a83mr9041833pfu.17.1684616160567; Sat, 20 May 2023 13:56:00 -0700 (PDT) Received: from celestia.nettie.lan (static-198-54-134-172.cust.tzulo.com. [198.54.134.172]) by smtp.gmail.com with ESMTPSA id j17-20020a62e911000000b0064d413caea6sm1651045pfh.179.2023.05.20.13.55.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 May 2023 13:56:00 -0700 (PDT) From: Sam Edwards X-Google-Original-From: Sam Edwards To: u-boot@lists.denx.de Cc: Sam Edwards , Nathan Barrett-Morrison , Philip Oberfichtner , Tom Rini Subject: [RFC PATCH 03/10] arm: exclude eabi_compat from LTO Date: Sat, 20 May 2023 14:55:40 -0600 Message-Id: <20230520205547.1009254-4-CFSworks@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230520205547.1009254-1-CFSworks@gmail.com> References: <20230520205547.1009254-1-CFSworks@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 21 May 2023 14:33:27 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean These symbols need to survive the IR-level dead function elimination pass, since nothing at the IR level is referencing them (calls to these are inserted later, at codegen time). Signed-off-by: Sam Edwards --- arch/arm/lib/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile index 62cf80f373..d65dc33f5b 100644 --- a/arch/arm/lib/Makefile +++ b/arch/arm/lib/Makefile @@ -88,6 +88,7 @@ obj-$(CONFIG_DEBUG_LL) += debug.o # For EABI conformant tool chains, provide eabi_compat() ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS))) extra-y += eabi_compat.o +CFLAGS_REMOVE_eabi_compat.o := $(LTO_CFLAGS) endif # some files can only build in ARM or THUMB2, not THUMB1