Received: by 2002:a17:90a:bc8d:0:0:0:0 with SMTP id x13csp1571700pjr; Mon, 18 May 2020 16:43:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa4aNdrD+BJAVCRGw4KoztIUk7jRKyC4sTlhynJ+KZJskznhWZoTRxOBPXlDVYlqPyxx30 X-Received: by 2002:a50:d0d7:: with SMTP id g23mr15879715edf.163.1589845436523; Mon, 18 May 2020 16:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589845436; cv=none; d=google.com; s=arc-20160816; b=qwpuuSjQcL4qUPK5mkVXkfOpg0CV6gtA/azfQQ1SNz/zQ6AP2TB9ncqSZsCOmZtxO+ 3lev1/eIvDCjvqzX2SfPBr6vaRyRZ8Xh/hf9JHgUy4bUeYXRXcVHQDdRYmHC1lZ7TVFV DvAv74W6RgaKJmptrX804H1AHS4E1JOBMbx8tQAmU4oz+PBLQx5g2yf7ZB2LcsfAPXU8 5UIr1FxfWc6eWI4rOFwxJQW6BxW5idkOqYRcXFAMD26u2+MNeIdaZRUz4wZXpfYDPkWu j74iBs8emedFaqhm0dTEfQbpaxV2RAOYpnnwVleL23xFNj8mMBur8pSuj5suve5mWbAP dPkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KafhaoNuUEGk0vhoXy3J3SfWsmyi4+ZDXQPBLXI3+UA=; b=Ob+3WM9hUX07PT63gLlx7b8ALxcMIEo2k96BQQIFmeepF2kW8wUkewMjX5OWMy7UvE RKxEzQQqPm8UyujZS6iL5RiRXazWRRgrYVnrxlmX+icrH6240/5dlW7jSjub6SUv/fME yuhjEsWFXP4WDRbcyaZ87PucnFkLvkn9UXIZ8uSoN39Wc52N4vXazdiTXwz2cHVXMaUx IPajre0mQ7qOq9u2qJISh3/e4m08v7/BgQu4VArldidFzSvLjNuYYIaP2t+AH9Fog3Zx PpL6h2kw8exUF+C3pj0gD1pc+PRNe5OSqTszpIO57b2W8hWuu+1V5iQS+lCqi8HGQRZK yUBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nSoHist7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u29si6495741edl.329.2020.05.18.16.43.34; Mon, 18 May 2020 16:43:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nSoHist7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730818AbgERRvH (ORCPT + 99 others); Mon, 18 May 2020 13:51:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:53570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730807AbgERRvF (ORCPT ); Mon, 18 May 2020 13:51:05 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6533820674; Mon, 18 May 2020 17:51:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589824264; bh=WmONSK4ctFdQWjz26WZgwfs5SpenNY5/I3xlW0g0H4U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nSoHist7/jqWI0XlRi95ZYfvIjBdhez75e7bz0DYFU6sN8jO9EwmAyPIEQPEQpd66 CC5j9Fynee6AsPH1hKWnhHA7MUnSOGq7scnzCRvFbGZ+Fv0Q+zfjiwnao+EEblMAgF 42g7mDOkFbz3oqMHvMEjVrummft9JvN9Rdp1VKuw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Golovin , Nick Desaulniers , Ilie Halip , Fangrui Song , Palmer Dabbelt , Sasha Levin Subject: [PATCH 4.19 22/80] riscv: fix vdso build with lld Date: Mon, 18 May 2020 19:36:40 +0200 Message-Id: <20200518173454.857080221@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200518173450.097837707@linuxfoundation.org> References: <20200518173450.097837707@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ilie Halip [ Upstream commit 3c1918c8f54166598195d938564072664a8275b1 ] 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 Reviewed-by: Nick Desaulniers Signed-off-by: Ilie Halip Reviewed-by: Fangrui Song Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- arch/riscv/kernel/vdso/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/riscv/kernel/vdso/Makefile b/arch/riscv/kernel/vdso/Makefile index 87f71a6cd3ef8..1dd134fc0d84a 100644 --- a/arch/riscv/kernel/vdso/Makefile +++ b/arch/riscv/kernel/vdso/Makefile @@ -30,15 +30,15 @@ $(obj)/vdso.so.dbg: $(src)/vdso.lds $(obj-vdso) FORCE $(call if_changed,vdsold) # We also create a special relocatable object that should mirror the symbol -# table and layout of the linked DSO. With ld -R we can then refer to -# these symbols in the kernel code rather than hand-coded addresses. +# table and layout of the linked DSO. With ld --just-symbols we can then +# refer to these symbols in the kernel code rather than hand-coded addresses. SYSCFLAGS_vdso.so.dbg = -shared -s -Wl,-soname=linux-vdso.so.1 \ $(call cc-ldoption, -Wl$(comma)--hash-style=both) $(obj)/vdso-dummy.o: $(src)/vdso.lds $(obj)/rt_sigreturn.o FORCE $(call if_changed,vdsold) -LDFLAGS_vdso-syms.o := -r -R +LDFLAGS_vdso-syms.o := -r --just-symbols $(obj)/vdso-syms.o: $(obj)/vdso-dummy.o FORCE $(call if_changed,ld) -- 2.20.1