From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f74.google.com (mail-dl1-f74.google.com [74.125.82.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31F0E40803A for ; Tue, 26 May 2026 17:29:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779816574; cv=none; b=O/6+HSWShgl3piTQz+KR0ZZ6CCNXHdpgXm+TbgmPEMcO3TamkP1AmouG4OgGz+CVDa8rAOv/LGaXXF/9csefu2WONqJof3pent+P39qPgJcrbgcl8zhc3garKWeLPAY8NS/Q+36vJ3iw0qhrnuAaJQhnAo7144uyjhzd+NCGnNg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779816574; c=relaxed/simple; bh=IrM04IvPDo1sb9vHOovgPk1Y41bQl7xbfqKK2Qsjgi4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=GXDy05tpKQsXZ/RN6XE7XnfYhAslxx0xaKCwBbop9jPi8XIOAyVmwhJbxuoveWn9YKCD0U/Af5vxHtDlGYt3ZiqRrDz7TWZIMlkxduCZ65xOSZb09JZc1DW2HqdcT0BLYZIgScHGt7FY9AZ3SaeJMNDwMgYBVpc7gE1FsXp2Kgo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--xur.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=cU7sfiML; arc=none smtp.client-ip=74.125.82.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--xur.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="cU7sfiML" Received: by mail-dl1-f74.google.com with SMTP id a92af1059eb24-1353a6f29deso8589749c88.1 for ; Tue, 26 May 2026 10:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779816572; x=1780421372; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=GSth3bH8wQN7DeJyLy/4rKJnmvPjIvLAam/FmnUx4yQ=; b=cU7sfiMLDU6gVECR76rMbwW26neasLjc3Raru1vsacodn4jKQrloQeGGtZkwId3lUA oaR0Ipp8JIzsW+K2PEvscVPJBg43JeaLPUi5oJ0cIUxseRwJ6x4e6KvPBz9OMzs0bwBh AQmMUMO9my3O147EsXyuz7QgoPOBsPLa72fPdrsrblYWs364CIG+SEcveuALs6J0XGd7 O6Tc4wsqtaTD9th9asj3ApEjxwNb2ZE/UAw4YRrBhnwInl3GfM15X0iftuiJEPiJLz7T WszMYf4yZi1Fq7dGg9+TKVGKrP68K9ARcAoUrtj4fjwMgPcPYBqwduXzi0HKcMiWnV0F NRRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779816572; x=1780421372; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GSth3bH8wQN7DeJyLy/4rKJnmvPjIvLAam/FmnUx4yQ=; b=ePDcCFvB9mDcIk2UZGDMHaKJ6kRpr1Ct90CbYsF3tmfn7kFE25hEl8MXgFSIgyfxh+ ftLWWJRG+If6TU5XRvH37A9GeMfVb81zsRKr1qi2vuXxx0eV6V/X7bFcXV1q+qSskrxk P9pvZ2l32RvUHKioN/4CqCiEWB9uxMkObTuy+zKJdXqSWMNdbPslxzRzri7ardem2c6g Iez3sO2qfsdWD65Bsj3qWjnvMaFLIBsCm/sH1MM7K/0q2BSiTpE28JqiyXNmkAyYV2CS qJA13N8uczHIp54i4DTrO+ukc5XyzixqVlbV1LSobzHkK+AB6vZZCAAj12N6cksHfGOk tlMw== X-Gm-Message-State: AOJu0YyW0CsP3DuvXdsrlAcq5CjgjDK8UcGOIIAiqVwn9c/gRnK+hRVL 6N0C1/8aEXuYjJ19l/Yz8KfGTgzeD4UHgzPGlU8uRYYTV7Eag/Ep6o0UTUzjnhelvuBNJg== X-Received: from dlbef14.prod.google.com ([2002:a05:7022:f4e:b0:135:cc8b:4336]) (user=xur job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:511:b0:12d:ceaf:ffcc with SMTP id a92af1059eb24-1365f812d65mr6760491c88.5.1779816572178; Tue, 26 May 2026 10:29:32 -0700 (PDT) Date: Tue, 26 May 2026 10:29:25 -0700 In-Reply-To: <20260526172926.2717929-1-xur@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260526172926.2717929-1-xur@google.com> X-Mailer: git-send-email 2.54.0.746.g67dd491aae-goog Message-ID: <20260526172926.2717929-3-xur@google.com> Subject: [PATCH v10 2/3] kbuild: change --thin back to 'T' in $(AR) From: xur@google.com To: Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Yonghong Song , Bill Wendling , Justin Stitt , Miguel Ojeda , Thomas Gleixner , Alice Ryhl , Sami Tolvanen , "Mike Rapoport (Microsoft)" , Rafael Aquini , Michael Ellerman , Stafford Horne , Christophe Leroy , Piotr Gorski , Rong Xu , Venkat Rao Bagalkote , Miguel Ojeda , Teresa Johnson Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" From: Rong Xu The '-T' flag in $(AR) is no longer problematic since the minimum requirement for LLVM has been updated to version 15. As of LLVM 14 and onward, the '-T' flag functions identically to the '--thin' flag. Fixed the issue seen on IBM Power11 System: ar: unrecognized option '--thin' Reported-by: Venkat Rao Bagalkote Closes: https://lore.kernel.org/linux-next/476507c9-a371-4864-9e87-572c1ecae82d@linux.ibm.com/ Signed-off-by: Rong Xu --- scripts/Makefile.vmlinux_a | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Makefile.vmlinux_a b/scripts/Makefile.vmlinux_a index 9774f02b43b2..650d44330d1f 100644 --- a/scripts/Makefile.vmlinux_a +++ b/scripts/Makefile.vmlinux_a @@ -10,12 +10,12 @@ include $(srctree)/scripts/Makefile.lib # Link of built-in-fixup.a # --------------------------------------------------------------------------- -# '$(AR) mPi' needs --thin to workaround the bug of llvm-ar <= 14 +# '$(AR) mPi' needs 'T' to workaround the bug of llvm-ar <= 14 quiet_cmd_ar_builtin_fixup = AR $@ cmd_ar_builtin_fixup = \ rm -f $@; \ - $(AR) cDPrS --thin $@ $(KBUILD_VMLINUX_OBJS); \ - $(AR) mPi --thin $$($(AR) t $@ | sed -n 1p) $@ $$($(AR) t $@ | grep -F -f $(srctree)/scripts/head-object-list.txt) + $(AR) cDPrST $@ $(KBUILD_VMLINUX_OBJS); \ + $(AR) mPiT $$($(AR) t $@ | sed -n 1p) $@ $$($(AR) t $@ | grep -F -f $(srctree)/scripts/head-object-list.txt) targets += built-in-fixup.a built-in-fixup.a: $(KBUILD_VMLINUX_OBJS) scripts/head-object-list.txt FORCE -- 2.54.0.746.g67dd491aae-goog