From patchwork Sun May 27 22:01:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 921235 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-478589-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bell.net Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="YCmwuu2o"; 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 40vDTh26lMz9s0q for ; Mon, 28 May 2018 08:01: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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=hTAIvUr7vEjgSgyF/kQlJZSq7fG/vW6jcpYl8j2QyAiDF0sRHy Usi/Q6WyBxR3ngrXVUhv0IFIJQcjtUzlEfti7JiYALm2w7Xq7GdXXtFf9uPNjrOZ x0h10GOFCuDuFh6KFDljO6WQtmyJlpscrEnp+dO6yfshZIC5d5VIsvCr0= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=QEg2FU38/1hyYcajIZiVF/qVEPk=; b=YCmwuu2oiWf/XuJnXmmk oSff4q3ESrXqrpNe34yNxU/lljgGfJo4egSdbAlhmssTE4T7a9oUgoj+pPJCgXt7 PIyyHFof3tvvZDIXgT+G/ixA5yNfVg+FOiaKAe9YQcwy4L/m2nXFo0UJLq1mHKbA Y0zfD3o1A70w/Xp9t5M28Pk= Received: (qmail 26792 invoked by alias); 27 May 2018 22:01: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 26763 invoked by uid 89); 27 May 2018 22:01:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy=H*UA:10.0 X-HELO: torfep01.bell.net Received: from simcoe207srvr.owm.bell.net (HELO torfep01.bell.net) (184.150.200.207) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 27 May 2018 22:01:14 +0000 Received: from bell.net torfep01 184.150.200.158 by torfep01.bell.net with ESMTP id <20180527220112.RARC3030.torfep01.bell.net@torspm02.bell.net> for ; Sun, 27 May 2018 18:01:12 -0400 Received: from [192.168.2.49] (really [69.158.175.55]) by torspm02.bell.net with ESMTP id <20180527220112.MIIU31064.torspm02.bell.net@[192.168.2.49]>; Sun, 27 May 2018 18:01:12 -0400 To: GCC Patches From: John David Anglin Subject: [committed] Disable use of GNU-stack notes on hppa-linux Message-ID: Date: Sun, 27 May 2018 18:01:11 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 The attached change disables the use of GNU-stack notes on hppa-linux.  The Linux kernel requires an executable stack for syscall restarts and signal returns.  Enabling GNU-stack notes breaks glibc signal handling. Committed to trunk and gcc-8 branch. Dave Index: config/pa/pa-linux.h =================================================================== --- config/pa/pa-linux.h (revision 260792) +++ config/pa/pa-linux.h (working copy) @@ -142,5 +142,8 @@ #define HAVE_sync_compare_and_swapsi 1 #define HAVE_sync_compare_and_swapdi 1 +/* It's not possible to enable GNU_stack notes since the kernel needs + an executable stack for signal returns and syscall restarts. */ + #undef NEED_INDICATE_EXEC_STACK -#define NEED_INDICATE_EXEC_STACK 1 +#define NEED_INDICATE_EXEC_STACK 0