From patchwork Fri May 26 20:17:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 9751077 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 700D560246 for ; Fri, 26 May 2017 20:18:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 638B828179 for ; Fri, 26 May 2017 20:18:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 584292821F; Fri, 26 May 2017 20:18:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id 54F5228179 for ; Fri, 26 May 2017 20:18:14 +0000 (UTC) Received: (qmail 4039 invoked by uid 550); 26 May 2017 20:18:12 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 3961 invoked from network); 26 May 2017 20:18:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5jEhpe15mWFZmHLOYeS4Arrk+jX9QaRulw5GEc51CLg=; b=PvnKE/eEZEEqmCEY7wk8N6kCqWX0VUEIBknL97HCOplBVnJpM0T5/1uLIvSFkbBy8l vpx8qzA0VhB1JhwX3D2aKZjOkr7EHo8/juR+iFHMdXrZ3hTIMTtT3kQNoHQbtibpoAOy R2ILuj9lCn9nL1FVmbL72GbtNwh79RH+Fx97I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5jEhpe15mWFZmHLOYeS4Arrk+jX9QaRulw5GEc51CLg=; b=TxqJ+e5J6o1KnIngCg2aEJSBqc1Sblks4SEevN2OaA+OlXoBnvpDK2M474nODaFKmY bDAmJUCfAUVQ7/u8KJv4OhW6i8r7Q+olgrooxZYPlu2S1ngJgh0XbF3tXdb+o8ENDHTv dW4yibayRNPYfnDeUbKCAB0rQjzA5hfZCmULA/0xOoOHblbe+o6Letd4JN8Rj83XyVm+ tKD60uKudG7TKWtANUr8QvWK10cjfyHlDDfuGHHVLOh+TTH1RpiCy0shc3ogDbKj5OW7 i22AJG0VG1LW91Ccssx175hbBTl/9kCOYD7D5S6tOcqasRKnt5hclhJioEJO6Ne7ziXf 367w== X-Gm-Message-State: AODbwcDCXEzTyiK2PPiA/2FXJDHpdZQbadc7gTPOGU74+O7ttMVP6pkd 7uZnzafi+Jveff3a X-Received: by 10.84.232.205 with SMTP id x13mr60009817plm.7.1495829879407; Fri, 26 May 2017 13:17:59 -0700 (PDT) From: Kees Cook To: kernel-hardening@lists.openwall.com Cc: Kees Cook , Laura Abbott , x86@kernel.org, linux-kernel@vger.kernel.org Date: Fri, 26 May 2017 13:17:06 -0700 Message-Id: <1495829844-69341-3-git-send-email-keescook@chromium.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495829844-69341-1-git-send-email-keescook@chromium.org> References: <1495829844-69341-1-git-send-email-keescook@chromium.org> Subject: [kernel-hardening] [PATCH v2 02/20] gcc-plugins: Detail c-common.h location for GCC 4.6 X-Virus-Scanned: ClamAV using ClamSMTP The c-common.h file moved in stock gcc 4.7, not gcc 4.6. However, most people building plugins with gcc 4.6 are using the Debian or Ubuntu version, which includes a patch to move the headers to the 4.7 location. In case anyone trips over this with a stock gcc 4.6, add a pointer to the patch used by Debian/Ubuntu. Signed-off-by: Kees Cook --- scripts/gcc-plugins/gcc-common.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/gcc-plugins/gcc-common.h b/scripts/gcc-plugins/gcc-common.h index b232ab15624c..918953ca4527 100644 --- a/scripts/gcc-plugins/gcc-common.h +++ b/scripts/gcc-plugins/gcc-common.h @@ -63,6 +63,13 @@ #endif #if BUILDING_GCC_VERSION >= 4006 +/* + * The c-family headers were moved into a subdirectory in GCC version + * 4.7, but most plugin-building users of GCC 4.6 are using the Debian + * or Ubuntu package, which has an out-of-tree patch to move this to the + * same location as found in 4.7 and later: + * https://sources.debian.net/src/gcc-4.6/4.6.3-14/debian/patches/pr45078.diff/ + */ #include "c-family/c-common.h" #else #include "c-common.h"