Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1893773rwn; Fri, 9 Sep 2022 05:50:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR45RsjZ4Jp1ZGH0vFbOMZV1KUcEy9nxsow7eIBJX6wF32IPbi3kWXXms/1xV6N5rbX3c1ln X-Received: by 2002:a17:902:7791:b0:173:3dc2:3bb9 with SMTP id o17-20020a170902779100b001733dc23bb9mr13596577pll.153.1662727829857; Fri, 09 Sep 2022 05:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662727829; cv=none; d=google.com; s=arc-20160816; b=r97N7P/n8/CHBHL3C0jYLXEKS5GJK1LjGoPabw6n8SPAgmccAuy7D2L+rX7xxAJ9bs YngQtjgpedv2VGk1xqW+UcyBoo6rgNXMYgw76uGL4UCuXGCVdWBH3ZfVTP+Ly0GgULIs +atx791CwbX6zMLHkygXubBzouhrBhQ0u5rqc6f3P9Yyy3yYcQIgLOwpgyhy+9sxKVn1 siONex0cfK7y0pYMKwp40Yv+t4++sz9w5RhjG2F/qP2kj+DuAxHYAGkrKmibbcxH9nJ0 oZgGq+OYm6BK6BKU1PVS5uSjiq0Uo6s+aGrp33KQYkp/NaPH+n1HyqD9E0TQvSPKWc3c SjEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=OWyIHmB3ZOtD4lGQuiLMMmQnDq9kS7BCbA5OSgwxcLs=; b=jb1Zlro1EUZUK9CTPVXNnB+j2Uuh4feCABcuDOs7Y6S/iyH7FHYpSesh9rIurhxoDC 669NhNVI5ubtr4lY1CS2y17v6o+qpBLDTjjI3jqgrhMjP/SbNlwMe/thVS87wNFaCbG0 iorZYLufgwPgd+COfsqn0RbTehjA9d18WeW0cZxvcxaPb/h6qYQtK6lajIZlJG945UKv j6ar6rJ1FZnmyfWFe2ZE04qCKZgzWaTQPRWejg5OF5EE5N76Lqy3fD3BEIGW0xSD9K/w 2FLTsAoFbppzNNxGGjcHgUe/hu2akzYs1J8906JphSxd8KAMkGB//GN4kHopErcs28c8 6KzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 83-20020a630156000000b00434dd2bbd7esi455473pgb.738.2022.09.09.05.50.17; Fri, 09 Sep 2022 05:50:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231441AbiIIMLW (ORCPT + 99 others); Fri, 9 Sep 2022 08:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbiIIMKg (ORCPT ); Fri, 9 Sep 2022 08:10:36 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 538B0102D68 for ; Fri, 9 Sep 2022 05:10:10 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4MPFDY576Zz4xYS; Fri, 9 Sep 2022 22:10:05 +1000 (AEST) From: Michael Ellerman To: Michael Ellerman , Christophe Leroy , Nicholas Piggin Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: References: Subject: Re: [PATCH v2] powerpc/vdso: link with -z noexecstack Message-Id: <166272522030.2076816.2756216556441607158.b4-ty@ellerman.id.au> Date: Fri, 09 Sep 2022 22:07:00 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Sep 2022 17:25:24 +0200, Christophe Leroy wrote: > With recent binutils, the following warning appears: > > VDSO32L arch/powerpc/kernel/vdso/vdso32.so.dbg > /opt/gcc-12.2.0-nolibc/powerpc64-linux/bin/../lib/gcc/powerpc64-linux/12.2.0/../../../../powerpc64-linux/bin/ld: warning: arch/powerpc/kernel/vdso/getcpu-32.o: missing .note.GNU-stack section implies executable stack > /opt/gcc-12.2.0-nolibc/powerpc64-linux/bin/../lib/gcc/powerpc64-linux/12.2.0/../../../../powerpc64-linux/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker > > To avoid that, explicitely tell the linker we don't > want executable stack. > > [...] Applied to powerpc/next. [1/1] powerpc/vdso: link with -z noexecstack https://git.kernel.org/powerpc/c/1d53c0192b15f42129a3dbbbfa05637bcf781a3e cheers