From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.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 339D7253F31 for ; Wed, 19 Mar 2025 12:06:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742385985; cv=none; b=bWasvanQGRHBUW398CS0OCwEPkJ8ntkF/znuGwD+ZPVz86DCR3K9tohO9uvJBMGjREulAHlSMRY5BVI+12bW/4gy5z1JXRINmcK41Y+j8PfWhce1rU2940Ykw76MYrpc+8u+VmIbjq+fWE76q5cLCaHTR4KSkf2tjEmnrorHKUY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742385985; c=relaxed/simple; bh=O29GWBbnGpDP3vt5LO38+vNeYxjy8uY5wGxT+fv2A64=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=FWLfmzHLRBggv0G8o6mSv0Tnb9S4JRQk9023jkxdkIgxCwGkc17b16iWIf+8TKce77qpZHk3cy4POIoXGoOw7Ctc4uUjDoCuGHBvS/Daa4pnseZfzX1vez8WU2DqiwzWAPzq/YRGoxhNJoXGPr9Q0TqtVZpYrl4fTMNcyCjXpfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=MgKuMLG7; arc=none smtp.client-ip=209.85.128.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--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="MgKuMLG7" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-43947a0919aso30590205e9.0 for ; Wed, 19 Mar 2025 05:06:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1742385982; x=1742990782; 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=uIznqglTZy019YwLgXF2t7sJ9J4X12Fp4umldfnnkg8=; b=MgKuMLG7Awe1MMUCGHrxdLfqZ/1fJXKBPQtCYX6Ope7MRUcFWDDr/AEYNIC9Hz+1US 1uMAFdj/2wpdOzve/0cVJKnazJDhhjqKE5zXOXnTRrl8BqdqqRH4ra9GYBwNuVtLoVlh 4m3Wfq6An+n30fvSsxSQzA+VWkeETf8JPVEXjzLR5FaMzPr8GtJxOxkYc++ACB0CqRk0 HmNDxOlMOb0RE8SnN6sCxAvcaq+TP6SKNsNsR0OJx+ZXnivGW5dXHCQWC29EhRFdbVYV //6GQHSRsL3E5gDVWCwoK4eLFyvoCin2jF9dSJ4pa9NbhRQw0oNh3leTYc4dcBNx905P AHcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742385982; x=1742990782; 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=uIznqglTZy019YwLgXF2t7sJ9J4X12Fp4umldfnnkg8=; b=TLw2l/z0vhio3KKWVYysfdT0uQz/iMbryPyji4Kp4jvLCaF8WMozDlf+GLx9lHCrUO FIczpehm/BF0HpPDCVFg6xtutGe+3G7/o5DOpOzhUtnBR3qy5wNamk6BtzV32C+wSxs4 z1hKwE2WFRKYVFVZd8HjYIgx59FgW9THMsbZXMF5O/MMXu6BMSZILo9qGIibFjRFpVnW Twqi7dx9ox/I0isCGhotO6x5fjg3qiImAXhIqwXuy45F2Q9cJ5+Tw4D9KC73AtXkGOZ+ IwevTtm9W4GWSshvA+nopl36p4bPH/XRLch9x2cnEQ3y8t0j4GJI0dJ1xw4vD5+MhZoK fR+w== X-Forwarded-Encrypted: i=1; AJvYcCWew54ROaAdrQW+ujCq4NTS6bnhkXhj/9b8thdRhMiEMHc6WN5OLE0xAw8Q4xvQr1lTg+zQSjSVhLQ2mA8=@vger.kernel.org X-Gm-Message-State: AOJu0YwKpyNkK8CJdCjUhEqEqOZLoUPq/JEU0E2OmDYgEzwDhVTAQ1Ji oStRqP9DROGdctKR8N/M7V3LcFb0+Z7O560g0kWpmXk0JRcq06RAXh/eB4W8goeUuj6Hvi5x/l3 rCCVBjoCknvQEEA== X-Google-Smtp-Source: AGHT+IGqauryNOQLYRTywgLEJywGQ+qmcp6L37Fmu8lttjDSEdhKi0R/yUZe6VREubsHAspkFyKKzK3KaQqYByU= X-Received: from wmgg15.prod.google.com ([2002:a05:600d:f:b0:43b:c450:ea70]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:3b92:b0:439:9a40:aa0b with SMTP id 5b1f17b1804b1-43d43882ebcmr19110095e9.25.1742385982576; Wed, 19 Mar 2025 05:06:22 -0700 (PDT) Date: Wed, 19 Mar 2025 12:06:20 +0000 In-Reply-To: <20250318231815.917621-2-samitolvanen@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250318231815.917621-2-samitolvanen@google.com> Message-ID: Subject: Re: [PATCH] rust: kbuild: Don't export __pfx symbols From: Alice Ryhl To: Sami Tolvanen Cc: Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Andreas Hindborg , Trevor Gross , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Tue, Mar 18, 2025 at 11:18:16PM +0000, Sami Tolvanen wrote: > With CONFIG_PREFIX_SYMBOLS, objtool adds __pfx prefix symbols > to claim the compiler emitted call padding bytes. When > CONFIG_X86_KERNEL_IBT is not selected, the symbols are added to > individual object files and for Rust objects, they end up being > exported, resulting in warnings with CONFIG_GENDWARFKSYMS as the > symbols have no debugging information: > > warning: gendwarfksyms: symbol_print_versions: no information for symbol __pfx_rust_helper_put_task_struct > warning: gendwarfksyms: symbol_print_versions: no information for symbol __pfx_rust_helper_task_euid > warning: gendwarfksyms: symbol_print_versions: no information for symbol __pfx_rust_helper_readq_relaxed > ... > > Filter out the __pfx prefix from exported symbols similarly to > the existing __cfi and __odr_asan prefixes. > > Signed-off-by: Sami Tolvanen Reviewed-by: Alice Ryhl