From patchwork Tue Feb 7 23:01:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Dureghello X-Patchwork-Id: 1739218 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=timesys-com.20210112.gappssmtp.com header.i=@timesys-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=1hcpS+8G; 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) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PBJXf3N6Gz23j0 for ; Wed, 8 Feb 2023 10:01:36 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BACD485E13; Wed, 8 Feb 2023 00:01:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=timesys.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=timesys-com.20210112.gappssmtp.com header.i=@timesys-com.20210112.gappssmtp.com header.b="1hcpS+8G"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1D42285DCE; Wed, 8 Feb 2023 00:01:25 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (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 34C7985DCE for ; Wed, 8 Feb 2023 00:01:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=timesys.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=angelo.dureghello@timesys.com Received: by mail-ej1-x62a.google.com with SMTP id gr7so46796865ejb.5 for ; Tue, 07 Feb 2023 15:01:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timesys-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yAUoqZSS5IpnoCRv7PlYbMepQthuAS407BedGVxXw74=; b=1hcpS+8G7hVtCGlSFGcC8XkKfZCGL8Gi41azcyjcRB/mrU177PuTfm+dFvs0Ps3Oyx qRfeqn5EWLpbQv3n782Myac+43fB/PYCA5IaHLga9iwBDs1ZfY7bwiHidSeo7ngwgDu+ ONXB+xX3DSh5gpL3pwZveEuCYjtzk9xl66+VdN13V2rNz380ZTVfcW3TquqYJqcYf50B njBUH4cf2lEGt1h4mmEWtrCCYJr18JO2zQzjz94IuKMw/Q3gAbmpJisdeAOjK1SaEHeD ZqG9mhxZCz92uMx2784vg+m3jhzDDVLkLdyFbZOdvB2u3R+MuzOkFh9lA33KLhQgcUvS YOSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yAUoqZSS5IpnoCRv7PlYbMepQthuAS407BedGVxXw74=; b=d6F9EIDFyDnVF4OWzcqsSuiH6D5e4VJQSfMR4Q5ntsNkIimJDg+6qYVwkCknV/ALGB Ut+cpo6/lPyIFbMqWGQQP7n0L5GQ97HGKnt9PSB29l2/dFFTbisGkz43kqiLQ4KdB+MI WnqOCYqAeMTTo3ODJJxODeL+p9gDU0HntpVmSebfkU5M2xBJQnvgABuAtqLjvaqG660x JmzYpwkw2LoWtP74vOV2hP7TwG2eRo5zKt6ynpqYlN6PTxcOQi5SGTA9FL7SnQdBRISZ ZI5pfqx8eWbw1LrXGU1NzOW/bBV5jBhiQSbKmuApo0+c2Kr2bLUmeOI2AS+OTp7SMAr2 kbHA== X-Gm-Message-State: AO0yUKX6WNdMWBVP6VteeyoOSRtyFG6Y3Mde/G0dfWLhJ1Y1bAtqrNdV HJvb5ZAdDScnm0ph2lf2EWaaaw== X-Google-Smtp-Source: AK7set90rjYSyEEI4tj/NU6jhgJKpHCI1I73H+t8YEY1POf8SZMoyYykLcJe6PDrkjdoiwYRW73lig== X-Received: by 2002:a17:906:3481:b0:868:b2b6:ee71 with SMTP id g1-20020a170906348100b00868b2b6ee71mr5154463ejb.6.1675810881601; Tue, 07 Feb 2023 15:01:21 -0800 (PST) Received: from localhost.localdomain (host-79-30-235-173.retail.telecomitalia.it. [79.30.235.173]) by smtp.gmail.com with ESMTPSA id bl3-20020a170906c24300b007bff9fb211fsm7514646ejb.57.2023.02.07.15.01.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 15:01:21 -0800 (PST) From: Angelo Dureghello To: trini@konsulko.com Cc: u-boot@lists.denx.de, Angelo Durgehello Subject: [PATCH] arch: enable private libgcc for m68k Date: Wed, 8 Feb 2023 00:01:15 +0100 Message-Id: <20230207230115.410911-1-angelo.dureghello@timesys.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 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.6 at phobos.denx.de X-Virus-Status: Clean From: Angelo Durgehello This patch fixes u-boot hanging on the first printf("%x", val). Some toolchains built without multilib enabled may produce u-boot freezing on first u64 shift operation, as in lib/vsprintf.c number() function. Using our private libgcc solves the issue. Setting private libgcc enabled at architecture level to avoid similar issues, it should not harm. Signed-off-by: Angelo Durgehello --- arch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/Kconfig b/arch/Kconfig index d30676ae81..55b9a5eb8a 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -67,6 +67,7 @@ config ARM config M68K bool "M68000 architecture" select HAVE_PRIVATE_LIBGCC + select USE_PRIVATE_LIBGCC select NEEDS_MANUAL_RELOC select SYS_BOOT_GET_CMDLINE select SYS_BOOT_GET_KBD