From patchwork Mon Feb 17 02:40:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dennis Lan (dlan)" X-Patchwork-Id: 3659591 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DA1319F1EE for ; Mon, 17 Feb 2014 02:40:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 11363201EF for ; Mon, 17 Feb 2014 02:40:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 32EC820172 for ; Mon, 17 Feb 2014 02:40:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751954AbaBQCkk (ORCPT ); Sun, 16 Feb 2014 21:40:40 -0500 Received: from mail-pd0-f174.google.com ([209.85.192.174]:50490 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751764AbaBQCkj (ORCPT ); Sun, 16 Feb 2014 21:40:39 -0500 Received: by mail-pd0-f174.google.com with SMTP id z10so14345771pdj.33 for ; Sun, 16 Feb 2014 18:40:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=6N3o/floBwbgBtmbyHpxYgY91i9uh+NLlg1XyNZr6UI=; b=wgH0IEwrz2bbrFdmK+fbHWT4uqZSzrVAjE6YIPIytHtuKcdZfBzCf8fB4+9d4atw1W D1hhX/jX1KFQSirQWoo3o/znN5T5wtsvil1kc1X8C5pmjFH3GHjDX0fm+XhizEbDn+dm CEgQE3M7MdQvMDc/H+mM1EPcSVYb/dD6FQfKWGXBUifPt/x8+KVKjntZ8yCkWEy+ENN6 OmdayBvHjZGSSAWKyIUiqzMKief0ev4qOdHQEaZacR+Ad+RDGfJOxOuCFbCebTJqR5W1 ffCwtv9ELWCVzwEiSBlMeTwtfHpmFenvkj7YNM1Cv4V4NERQqQ1ihRK8J3Fc/WpQ6yFP XAng== X-Received: by 10.66.176.143 with SMTP id ci15mr23579398pac.35.1392604839493; Sun, 16 Feb 2014 18:40:39 -0800 (PST) Received: from localhost.localdomain ([116.226.210.112]) by mx.google.com with ESMTPSA id id1sm40371707pbc.11.2014.02.16.18.40.34 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 16 Feb 2014 18:40:38 -0800 (PST) From: "Dennis Lan (dlan)" To: ceph-devel@vger.kernel.org Cc: "Dennis Lan (dlan)" Subject: [PATCH] crc32: mark gnu stack non-executable Date: Mon, 17 Feb 2014 10:40:13 +0800 Message-Id: <1392604813-12670-1-git-send-email-dennis.yxun@gmail.com> X-Mailer: git-send-email 1.8.5.3 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP https://wiki.gentoo.org/wiki/Project:Hardened/GNU_stack_quickstart https://bugs.gentoo.org/show_bug.cgi?id=500514 Signed-off-by: Dennis Lan (dlan) --- src/common/crc32c_intel_fast_asm.S | 3 +++ src/common/crc32c_intel_fast_zero_asm.S | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/common/crc32c_intel_fast_asm.S b/src/common/crc32c_intel_fast_asm.S index 4ca5d65..68d3426 100644 --- a/src/common/crc32c_intel_fast_asm.S +++ b/src/common/crc32c_intel_fast_asm.S @@ -662,3 +662,6 @@ global %1_slver %endmacro ;;; func core, ver, snum slversion crc32_iscsi_00, 00, 02, 0014 +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endiF diff --git a/src/common/crc32c_intel_fast_zero_asm.S b/src/common/crc32c_intel_fast_zero_asm.S index b7246f2..9728be9 100644 --- a/src/common/crc32c_intel_fast_zero_asm.S +++ b/src/common/crc32c_intel_fast_zero_asm.S @@ -644,3 +644,6 @@ global %1_slver %endmacro ;;; func core, ver, snum slversion crc32_iscsi_zero_00, 00, 02, 0014 +#if defined(__linux__) && defined(__ELF__) +.section .note.GNU-stack,"",%progbits +#endiF