Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1501310ybb; Thu, 2 Apr 2020 01:56:54 -0700 (PDT) X-Google-Smtp-Source: APiQypJhJXCLJLxAr3EUJyRdi7MXWd4DbkMWAiT/mE8cCYzgTgkSuxMGTXJaLysHrAqJQfpXaMRe X-Received: by 2002:aca:f4d0:: with SMTP id s199mr1467955oih.109.1585817814724; Thu, 02 Apr 2020 01:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585817814; cv=none; d=google.com; s=arc-20160816; b=Hi9mkgqYQcla8tyAyc0H4R9Oz6bNk5kt5dlPHmKrt7qY/zlq+wtE7EaBpX6Dbr7mhv j5s4Dc7FDc9OV8x4BBKLnpiHsRGHsK5aLppGr0cQJ1Jkazhh4hymxqFKELyiieqPeEvF 1foEuxj5ZLo/02pVB3sizWpeLkcJXMZiCjNB72tqzyqmDoSQq0OZrjM+Gi4yPx+kY17w PeLPgbWT7FhMRobQbNXV/P14wVyuDhiANmLyU07wizGExQeirJjn8zGxWUIhP/AbaJnC bJq7LBqT++9t/2gNK1ATfzhROXY7LaPj7zoC+fnEEKyqdC5z9op7KkxiSVAKMRQBic5S yTUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=h09wq+dScd3G1lPfYna5Eel+LXgpSjdYtjatbyrFm9Y=; b=M2870SjPDk5A4IgUB6I0SA3cJ8qBCrts+GWiHDqRKIuohF5HKV2bzgUU6GGI6tpuoU qQlyDwwN7fO2CyzSBbKq0//cl6hzOwV+x2nxMJlHvrUwdPpsZcEFwMNtZWAJSQ3ZzQsV XRKd++Vy8YJGista8NfonRY1xvmtzeM3/vBoOfwr//Hj29jk2EsGVxizVH+7RVWIAMOA GhruuIysbdaZqFbuwGYqwmIhLsPmIsGS+zhQmTsnKsztf1T1FakYKlj+Q6fniNfUw12+ ENrfYOZr3xaheIO2SMFAiqugWU1q9/miZ4gMiedVgIZBq0h4pIFUvRM0r615oOdy0jYL zwwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ToyxyR6+; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k185si2032948oif.13.2020.04.02.01.56.42; Thu, 02 Apr 2020 01:56:54 -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=@gmail.com header.s=20161025 header.b=ToyxyR6+; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387849AbgDBI4K (ORCPT + 99 others); Thu, 2 Apr 2020 04:56:10 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39713 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728612AbgDBI4K (ORCPT ); Thu, 2 Apr 2020 04:56:10 -0400 Received: by mail-wr1-f66.google.com with SMTP id p10so3184468wrt.6 for ; Thu, 02 Apr 2020 01:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=h09wq+dScd3G1lPfYna5Eel+LXgpSjdYtjatbyrFm9Y=; b=ToyxyR6+tOkJxOTHMZv3d5Qb5+mQdfAOof0Vp8dfanGw8N76L7Huem7/hA7fdphMPS HGqdvYzXRv86MFBimMv05fkMfaEKTugmYcDLdWlUw/ny+vDi+SqxVhym19IXMfGC+wcB TcmKMFniB0pqLJU6VUzLedGpy2W60Yxs+WtTK+Nqgp06K+D4N+K4nBh0dpeJopANlCc+ cqa7qv4GNoIBODZxs5gDqwapCqnkxHbibY+wj+1BpnkzK815iAJJLbXh+ESDxSmnYhor sTfW8+l07QY2T5l0WzSg6sMhyJU2SSyITsE46M+fpv2JdLH6YxhJ2VJZjKQT2tBQNDPN BJPA== 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; bh=h09wq+dScd3G1lPfYna5Eel+LXgpSjdYtjatbyrFm9Y=; b=KJtD3cYSTMTBkgt9Lv5Z5+MLX2g/TZBkE0nkYXyAJ6zIdh4bVkb3CR5ZemkGw2UduP 3m7kwOwGhlb8tK4AROp0MZ3W9IznGeMryBEA9qWIk7OisRyWU3xcKEX+9XXjqdJOiUla FeFtPRRh8NJ31/SUrzpnrvV9zaAXpBhbDrdpusgLP7sdY6la4XSnC8sN40l1lPmUo88M 0OER5s6VeMs6u1DTLEjPp7/LNoGxxp/XTQ8yo9AJcOn0EQwYs5lMRHyKDa6gRHXrJJRO NLwJ+rOtg1u+7DO8FMkfZ9JlbxwB8UbyHcWeGvJH2rR2AOKaccDmXRFPWxxoKznfEPCg vI2A== X-Gm-Message-State: AGi0PubJrmTa6plBBd49M/Xix6DkU9HqbjuxD//YweuB65iWz5D5pQLW VIJM1L7CLFamF/EaW3OjjlQ= X-Received: by 2002:a5d:6b8b:: with SMTP id n11mr2259268wrx.379.1585817768538; Thu, 02 Apr 2020 01:56:08 -0700 (PDT) Received: from localhost.localdomain ([2a02:a58:8532:8700:29b9:31c4:8247:2806]) by smtp.gmail.com with ESMTPSA id a13sm6584160wrh.80.2020.04.02.01.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2020 01:56:07 -0700 (PDT) From: Ilie Halip To: linux-riscv@lists.infradead.org Cc: Ilie Halip , Paul Walmsley , Palmer Dabbelt , Albert Ou , Greg Kroah-Hartman , Mao Han , Nick Desaulniers , Thomas Gleixner , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH] riscv: fix vdso build with lld Date: Thu, 2 Apr 2020 11:55:58 +0300 Message-Id: <20200402085559.24865-1-ilie.halip@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building with the LLVM linker this error occurrs: LD arch/riscv/kernel/vdso/vdso-syms.o ld.lld: error: no input files This happens because the lld treats -R as an alias to -rpath, as opposed to ld where -R means --just-symbols. Use the long option name for compatibility between the two. Link: https://github.com/ClangBuiltLinux/linux/issues/805 Reported-by: Dmitry Golovin Signed-off-by: Ilie Halip --- arch/riscv/kernel/vdso/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/riscv/kernel/vdso/Makefile b/arch/riscv/kernel/vdso/Makefile index 33b16f4212f7..19f7b9ea10ab 100644 --- a/arch/riscv/kernel/vdso/Makefile +++ b/arch/riscv/kernel/vdso/Makefile @@ -41,7 +41,8 @@ SYSCFLAGS_vdso.so.dbg = -shared -s -Wl,-soname=linux-vdso.so.1 \ $(obj)/vdso-dummy.o: $(src)/vdso.lds $(obj)/rt_sigreturn.o FORCE $(call if_changed,vdsold) -LDFLAGS_vdso-syms.o := -r -R +# lld aliases -R to -rpath; use the longer option name +LDFLAGS_vdso-syms.o := -r --just-symbols $(obj)/vdso-syms.o: $(obj)/vdso-dummy.o FORCE $(call if_changed,ld) -- 2.17.1