Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp658505ybj; Thu, 7 May 2020 04:45:18 -0700 (PDT) X-Google-Smtp-Source: APiQypJEhLwvC9XzNpGCr60ucnJCwHAeY2izpu+2dQ38Jv1QZ/bK6wIwqTIyIQ1w+ZpEBstakq4P X-Received: by 2002:aa7:c606:: with SMTP id h6mr11581991edq.265.1588851918410; Thu, 07 May 2020 04:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588851918; cv=none; d=google.com; s=arc-20160816; b=XDP/PXEyRi77x0CIEDcfNQN1p7EG/DsnWn6p9n9TdTYftc0kA2soUWsSv03PfOl5la 5U3cjfR2z2f3O3whoXnzlWR6AvRWYCHNLK3s+Gy1u2A9PyBmLJfLon3gl6e2Yy5d6ouJ FW8LmATe7G7RB7HUYdTZIDDaUMSLTLcGwbgJPTML2VKA+L6F6XJRKFIysQ3TW/WnNV3v Y1z56DDvG9OfnfOukU7dMISJEBjlaUfBjZXFnnAgJkVjCWsrVB2UZ5cnwkn9E72pf9HN L2Mi+6JCexvw70xL5zP4fmznfD7vrKWo9Q4wVX2QdRjkfTQHXhm77OsLqCqH03PzrlsS JZSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=etGdNZFrtC8Ypk1skgddf+CseNo/zmOlKMjtfIvIBTI=; b=q3lf2+43gMUZBFGMkgJv+0VQL+ntKkHBdSppsSNgqw5Xs5S4C+UEG4NeYGhKWrvghj rU6pYwwJ67NvDt+Qs1T87A9GaO0slVCCVSZdHBut1rF5SYH6vSWmA+ZarhdTk/EV6pVc j4A+SDMuOzARcBsGkA8viiVbqIzxLemGFBsXi+SutlrNt4l37JervDUcgtE4YVzVJrZC ZXe/NNdVzrweUN3DI7287um4Lt55GkUMbSTDupdHOuSVXeqz9l3wSinD/Kx+KDOcrimv /VNKWs7+HRjmgr2jLVfXX7IpvgbCbcymRfHuFBqdd6AoNeaiVe3twyI3JcvOqvjSuuyJ 81Jg== ARC-Authentication-Results: i=1; mx.google.com; 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 bs26si2897584ejb.527.2020.05.07.04.44.53; Thu, 07 May 2020 04:45:18 -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; 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 S1726924AbgEGLn2 (ORCPT + 99 others); Thu, 7 May 2020 07:43:28 -0400 Received: from elvis.franken.de ([193.175.24.41]:43620 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbgEGLnX (ORCPT ); Thu, 7 May 2020 07:43:23 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jWevq-00081e-02; Thu, 07 May 2020 13:43:14 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 95D7EC0409; Thu, 7 May 2020 13:00:36 +0200 (CEST) Date: Thu, 7 May 2020 13:00:36 +0200 From: Thomas Bogendoerfer To: Jiaxun Yang Cc: linux-mips@vger.kernel.org, clang-built-linux@googlegroups.com, "Maciej W . Rozycki" , Fangrui Song , Kees Cook , Nathan Chancellor , Paul Burton , Masahiro Yamada , Jouni Hogander , Kevin Darbyshire-Bryant , Borislav Petkov , Heiko Carstens , linux-kernel@vger.kernel.org Subject: Re: your mail Message-ID: <20200507110036.GC11616@alpha.franken.de> References: <20200506055245.3013374-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200506055245.3013374-1-jiaxun.yang@flygoat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 06, 2020 at 01:52:45PM +0800, Jiaxun Yang wrote: > Subject: [PATCH v6] MIPS: Truncate link address into 32bit for 32bit kernel > In-Reply-To: <20200413062651.3992652-1-jiaxun.yang@flygoat.com> > > LLD failed to link vmlinux with 64bit load address for 32bit ELF > while bfd will strip 64bit address into 32bit silently. > To fix LLD build, we should truncate load address provided by platform > into 32bit for 32bit kernel. > > Signed-off-by: Jiaxun Yang > Link: https://github.com/ClangBuiltLinux/linux/issues/786 > Link: https://sourceware.org/bugzilla/show_bug.cgi?id=25784 > Reviewed-by: Fangrui Song > Reviewed-by: Kees Cook > Tested-by: Nathan Chancellor > Cc: Maciej W. Rozycki > --- > V2: Take MaskRay's shell magic. > > V3: After spent an hour on dealing with special character issue in > Makefile, I gave up to do shell hacks and write a util in C instead. > Thanks Maciej for pointing out Makefile variable problem. > > v4: Finally we managed to find a Makefile method to do it properly > thanks to Kees. As it's too far from the initial version, I removed > Review & Test tag from Nick and Fangrui and Cc instead. > > v5: Care vmlinuz as well. > > v6: Rename to LIKER_LOAD_ADDRESS > --- > arch/mips/Makefile | 13 ++++++++++++- > arch/mips/boot/compressed/Makefile | 2 +- > arch/mips/kernel/vmlinux.lds.S | 2 +- > 3 files changed, 14 insertions(+), 3 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]