Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1170775lqt; Fri, 7 Jun 2024 09:52:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXx0vw7mUq0weMz3wCGOsDTDlUtD7lJ82+sX/fj6D+W15luZMeWRzgql8Nn27vXPU1/TtXcyGEzZNV7VlOM2phP9bdVik+qwbRXLMK4qg== X-Google-Smtp-Source: AGHT+IEQKQQESKTtSVjbdA3c1ymlqTJYAhZbc/RxkWTzCIW0U7VWZphYorpGV9TFnI/RB7KYFvd0 X-Received: by 2002:a17:90a:a110:b0:2bf:9981:e0ae with SMTP id 98e67ed59e1d1-2c2bcc6cfe0mr2915188a91.39.1717779146479; Fri, 07 Jun 2024 09:52:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717779146; cv=pass; d=google.com; s=arc-20160816; b=CATHZwLxgNrPZyPaHIuUb8zlVd8XS0d/L0EzZvBkw15jBS9SJKTu/iqbduxQp4yi3h ieUX5w5kL7jPKBOEsKHdm4jkQlky/K1QPyMgRxAKvRcCmRjGv/14xvznwaBsD5bTxLTB lhKGdXsy9D5x/tlUQJTl4urQblI7oE23VwN20NfyiPCUyeKF8ihIusJX2xd6RhnZzykr kwDR/OU8qDWEkwM4tSn1laa+RdJGLZgJ1vU+0t/qowlxeY4xyvdIpaPEcN8Uj3mk5+j2 XqTq2FuOX0cIGtJoJa3eVpA3xVtZsJ2iDZwLqvFzuaez7JpKMyHxiSkoHNI631Pi3bWF 1MTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=8Prk1nEKXpgeboqsDJV91fE/yP8aBqhY9UKJ6tED604=; fh=LyIBIkRrktgeaMhuNe2dq5YhUxWjTmNxu9/gJUFzf+M=; b=h5GZHWsyKalIkqDEKFsq2GJ6oqHiguI6QMVDVQQgloPf36FlFjY+C+GADmnl9v5uGv Kzp6y0w529nNeOmqd4O+S63RmIMOy3G+I6qD3aErJpKIqXmdqdfYiF0G586QuPpZi9Sl Vju0PcOzHShL7UgtrB8vZIpJHI+6O9WuE4+r5U6lKAYW/TH7xRfuz1uKpCmkHHaM+06g cEPOfjicPZMC3KikNTWb9Xj6Wm9ixCf1iwt0hMblZDAIWI35+zlnftjwqOUaa4GF76GA 1A3qgYtc2dlwdxaydhURdr+Wl0aPopizXabWetDMKNUWdA1N/4VpvPvRlj1Qw/BkkVd0 bqQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kernel.crashing.org); spf=pass (google.com: domain of linux-kernel+bounces-206507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206507-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2d0e2758bsi577040a91.10.2024.06.07.09.52.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 09:52:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kernel.crashing.org); spf=pass (google.com: domain of linux-kernel+bounces-206507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206507-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 30661B25DF7 for ; Fri, 7 Jun 2024 16:47:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3160E19AA5B; Fri, 7 Jun 2024 16:47:36 +0000 (UTC) Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE99819AA6A; Fri, 7 Jun 2024 16:47:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.228.1.57 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717778855; cv=none; b=ixiV+tCMX8CzJuu+fuPXILiynM9o3r/QIMaEtNiPAsg6TPb/R4Atmw+nPZmLcdGtX2kUtuZcR4z4u2sjxofNMsObHsHMnvJk3QiAiGlpZF8be+u7+Gd1tQlrgTOXjgTX9SscFpz2uUyXtXuFcJ0DrMQEJ2OlzTXiCQVwTY1Gu3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717778855; c=relaxed/simple; bh=ORWpYE0If+xvTrgGuCjCMCvUAtaesfIGd43R5HKRp+A=; h=Date:From:To:Cc:Subject:Message-ID:References:Mime-Version: Content-Type:Content-Disposition:In-Reply-To; b=iagNHJdk7BL1T5DXy0JOucs4JQ6q0XxKiUzXb0opbvpRZHW/yhU2Dt+qDQOuHlrsW5dKp8tOoE16uy4rv3ZJLpsyRcRqG84noPS+yVr1Jt9Q1ZAfqTDgP0eHGIGWYDE5XD9ZeRxlWZlY+we7Uvqyzx3CMFyF/dxD3I6Qok8mMZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org; spf=pass smtp.mailfrom=kernel.crashing.org; arc=none smtp.client-ip=63.228.1.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.crashing.org Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 457Ffa1j010762; Fri, 7 Jun 2024 10:41:36 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 457FfXv6010759; Fri, 7 Jun 2024 10:41:33 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Fri, 7 Jun 2024 10:41:33 -0500 From: Segher Boessenkool To: Michael Ellerman Cc: Arnd Bergmann , Nicolas Schier , Arnd Bergmann , linux-kbuild@vger.kernel.org, Masahiro Yamada , linux-kernel@vger.kernel.org, Nicholas Piggin , Nathan Chancellor , "Naveen N. Rao" , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc: vdso: fix building with wrong-endian toolchain Message-ID: <20240607154133.GD19790@gate.crashing.org> References: <20240607061629.530301-1-arnd@kernel.org> <87frtoq5yz.fsf@mail.lhotse> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87frtoq5yz.fsf@mail.lhotse> User-Agent: Mutt/1.4.2.3i On Fri, Jun 07, 2024 at 10:42:44PM +1000, Michael Ellerman wrote: > I use the korg toolchains every day, and kisskb uses them too. > > What commit / defconfig are you seeing the errors with? > > Is it just the 12.3.0 toolchain or all of them? I just tested 12.3.0 > here and it built OK. > > I guess you're building on x86 or arm64? I build on ppc64le, I wonder if > that makes a difference. The core problem of course is pre-processing a linker script with the C preprocessor (although linker scripts themselves have much more capable facilities for this), and by doing this as-if it was a piece of assembler code that for some strange reason you want fed through the C preprocessor (as .S file). What is it the C preprocessor is wanted for here? Is there nothing better that can be done? > The patch is probably OK regardless, but I'd rather understand what the > actual problem is. Yeah. The problem was found later in the thread (the CPP env var, or shell var anyway, not sure what it is here) was set. Fun and surprising! If you do nnot like such fun all that much, reduce the surface of eternal surprise? (I don't like saying "attack surface", but that is what it is as well). Segher