From patchwork Tue May 1 10:24:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Granberg X-Patchwork-Id: 907005 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-477035-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gentoo.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="NVK1oruH"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40ZyGc4b7Xz9s0W for ; Tue, 1 May 2018 20:25:24 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=LUDLW+ExMf/EVs4e PJ8Z1HZPiysvfwgiKaB1IRl+vgyZq3VPRDpXn+b2xg+H9ZgJYoYTHQjlHGgNOzMG aHJg/IBVEbIwNzUXuF/dvawa7wk6y82tRyP0wxVWiKcpXC3q74V/pyXgwqVMW2tl eBYwWEB4xXixetEw62P+dwrlZnw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=VVBdTW+9kTAWkfiswDryjp 6P4eY=; b=NVK1oruHga6R4/aD/GaROUMOMq9p5kkLzuk3L6Okg80s28sdDk4IT4 hiz9jPlSfTSQa1fKGv7F08VV1XfG3PTxgqaMove0MCmtNOuMU3pno2a8aAq3j9xW ZuasEGSTTBniuEzj3/e7NFKmV8NISk9PUluQsCtLikqoX8ndij5g4= Received: (qmail 50197 invoked by alias); 1 May 2018 10:25:17 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 50187 invoked by uid 89); 1 May 2018 10:25:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 01 May 2018 10:25:15 +0000 Received: from laptop1.gw.ume.nu (ip1-67.bon.riksnet.se [77.110.8.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zorry) by smtp.gentoo.org (Postfix) with ESMTPSA id D7B2B335C81 for ; Tue, 1 May 2018 10:25:13 +0000 (UTC) From: Magnus Granberg To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix the GNU Stack markings on libgcc.a Date: Tue, 01 May 2018 12:24:44 +0200 Message-ID: <3176479.Z5LO3NcMWg@laptop1.gw.ume.nu> MIME-Version: 1.0 X-IsSubscribed: yes Hi The *_resms64*.S files in libgcc don't have section to remove the executable stack marking. Can this be added to Gcc 8.0 Rc? gcc/ChangeLog: 2018-05-01 Magnus Granberg * config/i386/cet.h: Add section to remove executable stack marking. --- a/gcc/config/i386/cet.h 2018-04-20 15:30:13.000000000 +0200 +++ b/gcc/config/i386/cet.h 2018-05-01 11:45:53.762906162 +0200 @@ -87,6 +87,9 @@ 4: .popsection # endif /* __CET__ */ +# ifdef __linux__ + .section .note.GNU-stack,"",%progbits +# endif # endif /* __ELF__ */ #endif /* __ASSEMBLER__ */