From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63E3535A3AD; Mon, 4 May 2026 14:15:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777904157; cv=none; b=AGsHj6+Y0zgTd4MCXK3TOY8mU/zy1qVZQKgNMhKE6qR+1hNd7CieCVJcl4dN0xdFHp8yGbgKnNA1IXhe3pQ/oDDD+/d26VS3Be8NcnsaOBZHQnXvovi3mXtRxcDlFBJ7McPeVjgUBcoXd5JzMacsUDr6RYCgd/vny1v1wYYHbPo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777904157; c=relaxed/simple; bh=XoWVwZVpAzJmPUcGeKNKYk2tnAZzE9rdKGxdpYidFU0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PAieY6C+WDfYmk9dKSni64L8LQp55ipndwQVxa5HmsqOT3inRKEsSD3xvK6/LMawwrL+mtLUaaAuN3HPZRB9DeWhL7I10djBStiPqYEnBbBfZb/6wRHkPBG5PZE2UaRIwzfMt7eAweekVguZVLxERqX/4YhB5Rs7n6i9VNPbGWQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=afKTSYT4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="afKTSYT4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6F70C2BCB8; Mon, 4 May 2026 14:15:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777904157; bh=XoWVwZVpAzJmPUcGeKNKYk2tnAZzE9rdKGxdpYidFU0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=afKTSYT4fJIMCYiuTp+KIERmX04IHS3STJrOO7ulxg0N8wFRjjJV0NJzcZ970bPPt HYF4qphw0DJesdxSExnE62cv1w8H+Qb4AZjysepdYtJq0eACXDgq9gOyDMemkFgBcn 8/J8skmrlUOLzeuUAdKbkwgl1FeieySMcvhRhDPo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Arnd Bergmann , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Nathan Chancellor , Nicolas Schier Subject: [PATCH 6.18 206/275] check-uapi: link into shared objects Date: Mon, 4 May 2026 15:52:26 +0200 Message-ID: <20260504135150.731547352@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260504135142.929052779@linuxfoundation.org> References: <20260504135142.929052779@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit a261f6dff3c1653c19c065c3b3650c625447b8a7 upstream. While testing ABI changes across all architectures, I found that abidiff sometimes produces nonsensical output. Further debugging identified missing or broken libelf support for architecture specific relocations in ET_REL binaries as the source of the problem[1]. Change the script to no longer produce a relocatable object file but instead create a shared library for each header. This makes abidiff work for all of the architectures in upstream linux kernels. Link: https://sourceware.org/bugzilla/show_bug.cgi?id=33869 Cc: stable@vger.kernel.org Signed-off-by: Arnd Bergmann Reviewed-by: Thomas Weißschuh Acked-by: Nathan Chancellor Link: https://patch.msgid.link/20260306163309.2015837-2-arnd@kernel.org Signed-off-by: Nicolas Schier Signed-off-by: Greg Kroah-Hartman --- scripts/check-uapi.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/scripts/check-uapi.sh +++ b/scripts/check-uapi.sh @@ -178,8 +178,11 @@ do_compile() { local -r inc_dir="$1" local -r header="$2" local -r out="$3" - printf "int main(void) { return 0; }\n" | \ - "$CC" -c \ + printf "int f(void) { return 0; }\n" | \ + "$CC" \ + -shared \ + -nostdlib \ + -fPIC \ -o "$out" \ -x c \ -O0 \