From patchwork Tue Apr 23 20:29:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 162728 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4216882jan; Tue, 23 Apr 2019 13:29:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzx8HKnvKQHMi+W0fZ+T9yME/XpsgS6l019NdsrJnpgKJl6p2By9ObJX6E1g/ZVGGlMW55m X-Received: by 2002:a17:902:be09:: with SMTP id r9mr28412990pls.215.1556051368245; Tue, 23 Apr 2019 13:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556051368; cv=none; d=google.com; s=arc-20160816; b=ttZV/Gqzu2+uXMihmZO2nd6OcjXyc1wk1RijlKh8Mcal0yGpxUA0NKQzaqmpWjyvbT PRPbTirLMdmopQogcXy9v2IqOvTqgR10afxKnudFYGk7z01oZeY75U5QrzEF7huqfUpp 6aPIaypHMzPbsiW+O6BPq3GojbvkwAVCEEFyhXuf/fVLVBWlbr/qRh6wH9H5rBdVKxWZ 6nRtDU1f1UIV79EfWZAiZtArOcE15kAIuICq5yD4EvI6RP6ZpshDYdZTEXZRiuBBO8v8 cEkIC2z9gFmOVs/KSBrbDVx7WOVHbd9Sbc0/nQSbn4AU4Lstw5WPrCRpTsmQajof+ma8 TOJA== 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=BAEeSB7WGLvyDCfjwH+OOZ5AXvciJFw3qki2ZdjWtqk=; b=kubmrNxU5uJwzGpbgSfatfYuFqOVCxRnoHCvRlm18vwBMYdOgWK26ijkXtIIzBtTcX aYiYLswan76SpZZnV64CVmbrv6+5JVrq+3NuRUUh4t+GPAVpE487CVUzOJ28FZBDVtdK DE/qe5ZBUneIk8eATomM71s3xDZkZ8KGZco8dVtdLVupKHo2nCM5ojJAd4H2OsHpjvjl nZE8l56o/uZJ3DuIK2aZqlWDxYUpTN8VLj8+TTbNdQnqDncfOlz09AgcQ9yKdBL/26v+ 4Goc+I/Jkv0UGeTGRRR36Oqeud7vt4CvqmVngiLEqO5UiL4OddHNnLh2P+3k2jIqECJA wEfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="rNb+/yQd"; 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 i3si16770325pld.129.2019.04.23.13.29.27; Tue, 23 Apr 2019 13:29:28 -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="rNb+/yQd"; 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 S1727466AbfDWU30 (ORCPT + 30 others); Tue, 23 Apr 2019 16:29:26 -0400 Received: from mail-qk1-f201.google.com ([209.85.222.201]:34745 "EHLO mail-qk1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbfDWU3Z (ORCPT ); Tue, 23 Apr 2019 16:29:25 -0400 Received: by mail-qk1-f201.google.com with SMTP id s70so14203529qka.1 for ; Tue, 23 Apr 2019 13:29:25 -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=BAEeSB7WGLvyDCfjwH+OOZ5AXvciJFw3qki2ZdjWtqk=; b=rNb+/yQd2oJ6Ajh3K+GJoteTQiuU1XWUI8+ojiGXzxP3NWfXLPE8GZRRO6aLRQUjv0 y9vm4CQ7TB+pU8KgxaLbUdOjKbWUUFJhhkQ6rve1b/AiNpSNkNmHWpSpT5PxRB/Piwff 9lMQ7b+iR4bdPCmCaKZ6BsMacA0OCJ1pTxZZEw1IJmNvWoCQ9Ghh11QKj6oWfWDBUNjE DoxWkQ2W79k/Zy+LBhbDXggzKka0q0rq3qUbtb1bJUlzKd+EXAQ52ErM/x1dcoxxYoAD JQyKc2NrZbjJHIE4QdIbRAyr8LMQw1sMfE31nEadL2pLEM1UGldr76znBP2eoKnqO+DB NQ/A== 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=BAEeSB7WGLvyDCfjwH+OOZ5AXvciJFw3qki2ZdjWtqk=; b=nsSjixB1+s5LE8nJ6gHjSsCgIuL4FfP+Y9T1k25pTXeU4OwYRLk6lVATQ8LJ9J4t8o tePxb5lmgib+Ny1pZI48esM3wtzqwLH3Hpn4n7U6R1cARiJRAXptilV+jVS7xeZvkkw4 D0YKl6C4u7uz0V/omO7zR/bW3wESAai2yr3eipGBM2LfSp9M2THnuQoWM015jYLfG2U/ ZtfeGhJncQYGGPcg+XZNVYvxWbOKb64+zKHY2/ahM3Pmbk/YYWLxXudgArlbOqPLhpN/ de3SwSLdQuBcPIk32W12pHpYhCDyraFI69jcigP+XGTLH17ia/KmS874S0QQdvLRVy2g gQYA== X-Gm-Message-State: APjAAAX7S0hxGCigG6QTwOlQDV2mJf1Fj13frZ8K0EH5cVvVg3rSu7y3 XvkDl4x0ke/8Q3raprp0XQOsWt4suEMM6BjBqDM= X-Received: by 2002:a05:6214:327:: with SMTP id j7mr7710680qvu.150.1556051364679; Tue, 23 Apr 2019 13:29:24 -0700 (PDT) Date: Tue, 23 Apr 2019 13:29:05 -0700 Message-Id: <20190423202907.234180-1-ndesaulniers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.593.g511ec345e18-goog Subject: [PATCH] sh: require --Wl,--hash-style=sysv From: Nick Desaulniers To: ysato@users.sourceforge.jp, dalias@libc.org Cc: Nick Desaulniers , Andy Lutomirsky , clang-built-linux@googlegroups.com, Masahiro Yamada , linux-sh@vger.kernel.org, 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, prefer ld-option, or better yet, require --Wl,--hash-style=sysv since the selftest for vdso's requires DT_HASH. Cc: Andy Lutomirsky Cc: clang-built-linux@googlegroups.com Suggested-by: Masahiro Yamada Signed-off-by: Nick Desaulniers --- arch/sh/kernel/vsyscall/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.21.0.593.g511ec345e18-goog diff --git a/arch/sh/kernel/vsyscall/Makefile b/arch/sh/kernel/vsyscall/Makefile index 5db6579bc44c..6e8664448048 100644 --- a/arch/sh/kernel/vsyscall/Makefile +++ b/arch/sh/kernel/vsyscall/Makefile @@ -15,8 +15,7 @@ quiet_cmd_syscall = SYSCALL $@ export CPPFLAGS_vsyscall.lds += -P -C -Ush -vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 \ - $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) +vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 -Wl,--hash-style=sysv SYSCFLAGS_vsyscall-trapa.so = $(vsyscall-flags)