From patchwork Sun Jun 26 15:36:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emese Revfy X-Patchwork-Id: 9199547 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 C7127607D3 for ; Sun, 26 Jun 2016 15:30:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACFBD28544 for ; Sun, 26 Jun 2016 15:30:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A08D12854D; Sun, 26 Jun 2016 15:30:13 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EAD728544 for ; Sun, 26 Jun 2016 15:30:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752048AbcFZPaM (ORCPT ); Sun, 26 Jun 2016 11:30:12 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36410 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752024AbcFZPaL (ORCPT ); Sun, 26 Jun 2016 11:30:11 -0400 Received: by mail-wm0-f68.google.com with SMTP id c82so18268800wme.3 for ; Sun, 26 Jun 2016 08:30:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=k7Zm/YrCg2/tzRTOMJCIOgc+ycOzVfJiQye31p/UZdE=; b=RS1o56bEtfROvXVguYUwDuQOlmLALHfY6tUli7sDReVevCXlZfr2C01H474GyeQ9ZJ 6XSv6Dz77VZMoxOwP0fMQwqwR1lN/Y9+LlPv4nPfe8NzQWbqS6Ea8s0tO9wgptiXFLzR vtrUXE9ZDwrSFjw7j+nwK3uR1qM45oCCz44d6B3dsF6b6l7CiYu7S70x/EwRpmNWtCxs SNZXI67OmkPSOt8mrevVlzlijl48LpcwaYkZ39fQjZ0q8MF/J2eLdT5EYzGKUhqYa87R lA4nENOrJtpp06ELgYt7OBCP7AyZd+fJn2ieJYd1rjIrXasbezHEO9gPOrI1NXpmaqvO b/Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-transfer-encoding; bh=k7Zm/YrCg2/tzRTOMJCIOgc+ycOzVfJiQye31p/UZdE=; b=Jvvj80xWduXUGsuPdyz1MPZDnYT/2KQmDorMChVlcqNtaVuj6jzTtf5gOf9bv8ioSq JcNNuul+9VlOyEBoKMYwUi3ZM53qAl7/UHXGQijS2PICtTClleI8fuJBBkXJwjhpogAc 9TH0zvwa+dioKlYbj1XOpeG2d8omkAAOVd3bdpPsRGMgG177wvJW8znsu0FNh+vw3gex tDgFwQLbL362q8wDp4ruchz1NVbevV8qltvnTaJuUQBaITM0HybeMaOVAwE9AnW0IhFl NtJxxd853a8RaLGQCd96POhe2rT6K9IFTdzzN2QPGljU+UkQ40YE06/YyQM+ESzVGVvd 979w== X-Gm-Message-State: ALyK8tJMfBuKGAF8eyHPlAbIuyQcvyoB994YFziyD3pHp4174Fud7gwJ7duL7+aUSMR6IQ== X-Received: by 10.28.45.142 with SMTP id t136mr6460870wmt.40.1466955010224; Sun, 26 Jun 2016 08:30:10 -0700 (PDT) Received: from localhost (beleg.madhouse-project.org. [128.199.36.147]) by smtp.gmail.com with ESMTPSA id uq7sm2427773wjc.19.2016.06.26.08.30.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Jun 2016 08:30:09 -0700 (PDT) Date: Sun, 26 Jun 2016 17:36:43 +0200 From: Emese Revfy To: keescook@chromium.org Cc: mmarek@suse.com, linux-kbuild@vger.kernel.org, kernel-hardening@lists.openwall.com, pageexec@freemail.hu Subject: [PATCH] Automate make rule generation for gcc plugin objects Message-Id: <20160626173643.c05fd4d559ee9214ad1253c6@gmail.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu) Mime-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Reported-by: PaX Team Signed-off-by: Emese Revfy --- scripts/gcc-plugins/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile index a3f8ca4a..898449d 100644 --- a/scripts/gcc-plugins/Makefile +++ b/scripts/gcc-plugins/Makefile @@ -20,9 +20,6 @@ endif $(HOSTLIBS)-y := $(GCC_PLUGIN) always := $($(HOSTLIBS)-y) - -cyc_complexity_plugin-objs := cyc_complexity_plugin.o -sancov_plugin-objs := sancov_plugin.o -latent_entropy_plugin-objs := latent_entropy_plugin.o +$(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o)) clean-files += *.so