From patchwork Tue Apr 23 21:19:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 162734 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4258864jan; Tue, 23 Apr 2019 14:19:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBNa/jt/V1OrYy9Ytf2558Iq+G+tlK6mjgtWZzkDgzF/olYbEOGM0WqyO3D4O217n1QlWd X-Received: by 2002:a17:902:8d83:: with SMTP id v3mr28768531plo.283.1556054382908; Tue, 23 Apr 2019 14:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556054382; cv=none; d=google.com; s=arc-20160816; b=KL7SJdGs/gHj8uoSiwtcSbU4HQKUkS+rK8U0eD1JU20A2sZoru1HW8mh6T+zhq/yM5 uRl4bFsAT0I7NBmN4fsqskqPS0E5AOoT0UmaMlE6e6qctlp28B+Ke9aMHMdk3QODKZJ6 hKmyEz60whoBoLxfhhPS7MQeekchHliXj4hNnyGlF3z3g6IhP0NAcVjcr6nCs9p3CHaS 9Ktu+oiLKct2xIBuDu5jHVUVxNS/WjyCSBnsxrFQq4DeW5cD376+Y7wTqZTDq4DGbAjS MDlNfK6YnTjQiYihzURcZcRKRCP/P6YjI6DCqagb42m2kidGqYkO6It/2Rz96nt5Fc6M J4VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=HLwbm2ixUCUU8yHUub9JWOZJ0WYHpVgzhxGwrAg6Yo8=; b=oMoLUERkmAdkcpP8kSGMdjWZUhadQczAMigwKCcvRULGIvgUxbqk8VgJMVKBg63Imq ErhFao7NynbPpLgB1sOXeStCxcPZ50aIFjlt/M0sTEVN4eFiHBvA/hd8FhxTXuL37SNR ZIxm7/lTuAJe+TF2pMzjfXzEScJcVk2/H8qZGkyFuO+ffWoizQ3/C4hoXBtcP8iJhZuu DhZuqDd0hILbqTiZ384fBbd+8jeAPGYjN9OHli9ttcl5BdVt3WId3L6N4WzA0T8HzArc KPgCIOEZ0XyHhBW+DEbaNrkObph8n3ZNy51W2FY/H5lkZ5BvyfdM6F8yZNIGDjW1gnti vefQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QjMWQQTg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g19si6657402pgk.532.2019.04.23.14.19.42; Tue, 23 Apr 2019 14:19:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QjMWQQTg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727502AbfDWVTl (ORCPT + 30 others); Tue, 23 Apr 2019 17:19:41 -0400 Received: from mail-yw1-f74.google.com ([209.85.161.74]:50247 "EHLO mail-yw1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbfDWVTk (ORCPT ); Tue, 23 Apr 2019 17:19:40 -0400 Received: by mail-yw1-f74.google.com with SMTP id j66so13268575ywa.17 for ; Tue, 23 Apr 2019 14:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=HLwbm2ixUCUU8yHUub9JWOZJ0WYHpVgzhxGwrAg6Yo8=; b=QjMWQQTgONkYT6av0EQrfI49Pj26aGTpliQWAnVkig7D11d32ywX7gZvKeTzln4OZT 43jVMFUYBNRJIU76YxQxBVovq0lBkONQqy3RqadgNgdJvqEmiA/WpIicOmtfYRF9ujRE stWPpFbI6RzS0JbfCVp/r9eDIqYIpoTflt7fE7+9pHZGDceZlGAl+AFa/XSD9fIZ5clL VL+duKaaL9KoWgisTmmIOmqWjA5FFfAorgnMUQvTk57WaM8BMVDAJ+0/QYkHpGIF++GY 8pr51r3aqYwvXwR+dBhalOZmNzslwwB8zY/+O02JsOvZOfCKliDeWFgzzhb+1oLHTLqT 1uYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=HLwbm2ixUCUU8yHUub9JWOZJ0WYHpVgzhxGwrAg6Yo8=; b=On6NqqHM56DClF+91xopImIXOVVLJYRplcj/kqNSimWrx4FXL/49uksobm8aWBuf/h 8IIk+BgVgudUhjC1uybQwXTKFBiVdK06csLLzgbBVklqJ4jU25sJ4TCulRBr9hKzuIrk h6XUGhR1Zwvn+Hiw3mrR/yPUAggX2YJp2zAFx+NTJ4CxtSBk6WMSyfOxVq7mgCOZH+x8 HAT2gHh/mw17IWZ/QvieN0z2CiZeQiBLGgnG3UeXRYAa4HOUGlglwoz1OXDkc0qMRUwH h4XuZRjFSFz6zywL98uPDhGyMw0nybPDEUX42IEX+UcjGgpOtdsYIWge31jGAimG5/HB BLNw== X-Gm-Message-State: APjAAAV0LMYsLxscJNhpyt2JUF66GO789hcPleH9kUW2F3i8+d7fyXZB fthHgAx4E2CZBpGcxZt0RF+HdehVACsqWxosGFo= X-Received: by 2002:a25:2d49:: with SMTP id s9mr1727497ybe.278.1556054380091; Tue, 23 Apr 2019 14:19:40 -0700 (PDT) Date: Tue, 23 Apr 2019 14:19:31 -0700 Message-Id: <20190423211932.4906-1-ndesaulniers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.593.g511ec345e18-goog Subject: [PATCH] nds32: vdso: drop unnecessary cc-ldoption From: Nick Desaulniers To: green.hu@gmail.com, deanbo422@gmail.com Cc: Nick Desaulniers , clang-built-linux@googlegroups.com, Masahiro Yamada , linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Towards the goal of removing cc-ldoption, it seems that --hash-style= was added to binutils 2.17.50.0.2 in 2006. The minimal required version of binutils for the kernel according to Documentation/process/changes.rst is 2.20. Link: https://gcc.gnu.org/ml/gcc/2007-01/msg01141.html Cc: clang-built-linux@googlegroups.com Suggested-by: Masahiro Yamada Signed-off-by: Nick Desaulniers --- arch/nds32/kernel/vdso/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.21.0.593.g511ec345e18-goog Acked-by: Greentime Hu diff --git a/arch/nds32/kernel/vdso/Makefile b/arch/nds32/kernel/vdso/Makefile index e6c50a701313..d379645cad74 100644 --- a/arch/nds32/kernel/vdso/Makefile +++ b/arch/nds32/kernel/vdso/Makefile @@ -11,10 +11,8 @@ obj-vdso := note.o datapage.o sigreturn.o gettimeofday.o targets := $(obj-vdso) vdso.so vdso.so.dbg obj-vdso := $(addprefix $(obj)/, $(obj-vdso)) -ccflags-y := -shared -fno-common -fno-builtin -ccflags-y += -nostdlib -Wl,-soname=linux-vdso.so.1 \ - $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) -ccflags-y += -fPIC -Wl,-shared -g +ccflags-y := -shared -fno-common -fno-builtin -nostdlib -fPIC -Wl,-shared -g \ + -Wl,-soname=linux-vdso.so.1 -Wl,--hash-style=sysv # Disable gcov profiling for VDSO code GCOV_PROFILE := n