From patchwork Mon Nov 16 23:12:22 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 104568 Received: from mail-vk1-f180.google.com (mail-vk1-f180.google.com [209.85.221.180]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.6300.1794870774918404538 for ; Mon, 16 Nov 2026 15:12:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=ot2BS/rA; spf=pass (domain: konsulko.com, ip: 209.85.221.180, mailfrom: scott.murray@konsulko.com) Received: by mail-vk1-f180.google.com with SMTP id 71dfb90a1353d-5ead9f60e26so275873e0c.1 for ; Mon, 16 Nov 2026 15:12:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1794870774; x=1795475574; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=V8s5eOMxSwHMBP41tn4SHU4rFL2YWGr76buZj9FisVk=; b=ot2BS/rAHrdYTJrC4KPWPrqHRU0J7vNNRpZPuaM4Lzie6Uy6u1mfi1IGYFotAzYv0I 21XKfTEP2RgmFH2Q+e+LboeiusDFv2FcBPTB9x0QDZ/sHpB2NeoBffJoeoydjhj7CBW/ mNA6j9aVH6eOj+LaJe8Tl1fbaravhalxiOsLc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794870774; x=1795475574; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=V8s5eOMxSwHMBP41tn4SHU4rFL2YWGr76buZj9FisVk=; b=AjhnWqYmfx+1VM69aYx4nRwZioNyElIHl7y7G958z7Qehdr4+E1uSiYuliqHwxhmIr NsmR5UfP5+NVshwi3GLCgQ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jG/XujtUdVUuavNX1/v52KecyUvS0874DkjWcLJ8zsxfPEglerrQvRQpES3+Q== X-Received: by 2002:a05:6122:46a6:b0:5ec:d9c6:73b2 with SMTP id 71dfb90a1353d-5ee5b737ecbmr302532e0c.7.1794870773497; Mon, 16 Nov 2026 15:12:53 -0800 (PST) Return-Path: Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5ee34e9516dsm7575235e0c.12.2026.11.16.15.12.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2026 15:12:53 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][wrynose/rust][PATCH 01/19] rust: add secure-plt to generated powerpc targets Date: Mon, 16 Nov 2026 18:12:22 -0500 Message-ID: X-Mailer: git-send-email 2.56.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 16 Nov 2026 23:13:03 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5440 From: Peter Tatrai Rust's built-in powerpc-unknown-linux-gnu target has used the +secure-plt feature since rust-lang/rust#136154. OpenEmbedded generates its own powerpc-poky-linux-gnu target specification, however, and the feature was missing there. Consequently LLVM emitted objects that were incompatible with the secure-plt toolchain default, making ld fall back to bss-plt and print a diagnostic that rustc 1.97+ exposes through the linker_messages lint. Signed-off-by: Peter Tatrai Signed-off-by: Richard Purdie (adapted from oe-core commit 88c0d94bc177bd8e3edc016316c92528c6d38586) Signed-off-by: Scott Murray --- classes-recipe/rust-target-config.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/classes-recipe/rust-target-config.bbclass b/classes-recipe/rust-target-config.bbclass index 58c36bf..1cba275 100644 --- a/classes-recipe/rust-target-config.bbclass +++ b/classes-recipe/rust-target-config.bbclass @@ -254,6 +254,7 @@ TARGET_ENDIAN[powerpc] = "big" TARGET_POINTER_WIDTH[powerpc] = "32" TARGET_C_INT_WIDTH[powerpc] = "32" MAX_ATOMIC_WIDTH[powerpc] = "32" +FEATURES[powerpc] = "+secure-plt" ## powerpc64-unknown-linux-{gnu, musl} DATA_LAYOUT[powerpc64] = "E-m:e-Fi64-i64:64-i128:128-n32:64-S128-v256:256:256-v512:512:512"