Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1710760rwb; Sun, 15 Jan 2023 03:04:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXtqQGHCTVNRrm3weuJAJI4aBrhOQspdNt8Xx1Lrq23EPxQvrKLcsGH8o+yutz2NZFk35c6i X-Received: by 2002:a17:90a:1347:b0:229:a2:a265 with SMTP id y7-20020a17090a134700b0022900a2a265mr12927977pjf.3.1673780643610; Sun, 15 Jan 2023 03:04:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673780643; cv=none; d=google.com; s=arc-20160816; b=vch7/XRf+fH67kv7If42z4foFMDYyWAuEE/Ldu/iik6p5ba7vqypPOhkv0CM2IK7FU kEaosb3O4KT7ko4dvVBJSXLg7J0+ZV9HjrWcLlGJycy3Jf39aNIuHVLaenZCS+JGaLf7 Caw/SiFZdiLsLMcPjJOYJcwXuIAyf81/ZLItoXQBnxVsXZv9zaZ9uF0ReJ7TL713m/om cJlmzI8Rpo36FnP69s8OxpnmZ7AhujLSjH33ZH+yuCl33OHEpgAIv4hM2VR8ths0tin2 aSofYB++SW0j6xD33tQA5RI5R37RGUKsCnH8rrzYvXjlPOw/xdQ31bA0ZLG6WfOhuH26 lyBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date; bh=04n6ZfSyHzUnZfu5Wg1hB6V1xRqhaq6ldgwNkJQAw78=; b=spSjOcW8tcIiSumDWYOq0/ZTLXBB7kbUs84oNiRGzCXO0IMXLP7V3wmeUnhDr2fmsY lpoGS+yJdvYPWu2u83QaHltL1iWWAjMfEL2itSIImSTeahgRAutE3rzUsgc6CPbMUKkr duOH+MEdlrmpvOFHpITNiEPz/Qr0bfh6rQOH2bH2OPUQU7HZVQYLbUDVEE26XouwjBIE Ywqqf3+dLCvuj/C4w8ArOyTxg6xX2iijljpfg4dC5yxXKYaK0xbzhxro/tBFeyT3ytos gUazAAQIKhmfYb4DDCcJww/M57f4RSJd2J9JfAeVg9fT79nDnvsnBeBB9wiEnKU/SMY7 PsfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r6-20020a63d906000000b00477c2326410si26224371pgg.298.2023.01.15.03.03.56; Sun, 15 Jan 2023 03:04:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230290AbjAOKyu convert rfc822-to-8bit (ORCPT + 54 others); Sun, 15 Jan 2023 05:54:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230001AbjAOKyt (ORCPT ); Sun, 15 Jan 2023 05:54:49 -0500 X-Greylist: delayed 1458 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 15 Jan 2023 02:54:47 PST Received: from www17.your-server.de (www17.your-server.de [213.133.104.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02B86E3BE; Sun, 15 Jan 2023 02:54:46 -0800 (PST) Received: from sslproxy05.your-server.de ([78.46.172.2]) by www17.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pH0HM-0006mM-Hc; Sun, 15 Jan 2023 11:30:20 +0100 Received: from [77.185.92.28] (helo=[127.0.0.1]) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pH0HL-000JFs-5T; Sun, 15 Jan 2023 11:30:19 +0100 Date: Sun, 15 Jan 2023 11:30:17 +0100 From: Thomas Meyer To: linux-um@lists.infradead.org, David Gow , Miguel Ojeda , =?ISO-8859-1?Q?Bj=F6rn_Roy_Baron?= , Richard Weinberger , Anton Ivanov , Johannes Berg , Thomas Gleixner , Ingo Molnar , Nathan Chancellor , Nick Desaulniers CC: rust-for-linux@vger.kernel.org, llvm@lists.linux.dev, linux-doc@vger.kernel.org, kunit-dev@googlegroups.com, x86@kernel.org, linux-kernel@vger.kernel.org, Wedson Almeida Filho , Gary Guo , Brendan Higgins , Daniel Latypov , Jonathan Corbet Subject: Re: [PATCH 1/3] rust: arch/um: Use 'pie' relocation mode under UML User-Agent: K-9 Mail for Android In-Reply-To: <20221217044436.4138642-2-davidgow@google.com> References: <20221217044436.4138642-1-davidgow@google.com> <20221217044436.4138642-2-davidgow@google.com> Message-ID: <387962BE-A8FA-4D35-9905-30D3685E38AC@m3y3r.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Authenticated-Sender: thomas@m3y3r.de X-Virus-Scanned: Clear (ClamAV 0.103.7/26782/Sun Jan 15 09:20:34 2023) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am 17. Dezember 2022 05:44:34 MEZ schrieb David Gow : >UML expects a position independent executable for some reason, I think I did add this to make UML build on Debian... > so tell >rustc to generate pie objects. Otherwise we get a bunch of relocations >we can't deal with in libcore. > >Signed-off-by: David Gow >--- > arch/um/Makefile | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/arch/um/Makefile b/arch/um/Makefile >index f1d4d67157be..ae321282dc6f 100644 >--- a/arch/um/Makefile >+++ b/arch/um/Makefile >@@ -68,6 +68,8 @@ KBUILD_CFLAGS += $(CFLAGS) $(CFLAGS-y) -D__arch_um__ \ > -Din6addr_loopback=kernel_in6addr_loopback \ > -Din6addr_any=kernel_in6addr_any -Dstrrchr=kernel_strrchr > >+KBUILD_RUSTFLAGS += -Crelocation-model=pie >+ > KBUILD_AFLAGS += $(ARCH_INCLUDE) > > USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -I%,,$(KBUILD_CFLAGS))) \ -- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.