From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752072AbeB1IhN (ORCPT ); Wed, 28 Feb 2018 03:37:13 -0500 Received: from mail-qk0-f193.google.com ([209.85.220.193]:36993 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751707AbeB1IhK (ORCPT ); Wed, 28 Feb 2018 03:37:10 -0500 X-Google-Smtp-Source: AG47ELsES3x1pViTCg2XVcv1/fTKiV9kH7KoE8RL7CbuohpP8Oa7eqPlw7PpWmxFycB8V8bPo1MXtbKbtghiFzdm104= MIME-Version: 1.0 In-Reply-To: <20180228020631.GB3780@codeaurora.org> References: <20180222191758.GB5180@codeaurora.org> <20180228020631.GB3780@codeaurora.org> From: Arnd Bergmann Date: Wed, 28 Feb 2018 09:37:09 +0100 X-Google-Sender-Auth: GPn1Y5ELjiJTL7NXCWJLlEvbB4I Message-ID: Subject: Re: Removing architectures without upstream gcc support To: Richard Kuo Cc: linux-arch , Linux Kernel Mailing List , "open list:QUALCOMM HEXAGON..." , Chen Liqin , Lennox Wu , Guan Xuetao , Guenter Roeck , Al Viro , James Hogan , "open list:METAG ARCHITECTURE" , Jonas Bonn , Stefan Kristiansson , Stafford Horne , openrisc@lists.librecores.org, David Howells Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 3:06 AM, Richard Kuo wrote: > On Thu, Feb 22, 2018 at 11:43:10PM +0100, Arnd Bergmann wrote: >> - How do I build an llvm based toolchain for Hexagon? Do I need patches >> on top of the llvm-6 release branch? Where can I find the corresponding >> binutils-2.30 sources? > > Just to follow up on this, the closest thing right now to compile the kernel > for Hexagon is the toolchain included with the Hexagon SDK. However, the > linker will fail because of something in the kernel build process that > I think produces empty sections, which that linker can't handle. A newer > linker can handle it, but that's not scheduled to be released until much later > this year. > > That's actually the closest option currently. I tried the upstream source > but it seems to lack some specific patches to support kernel compilation, > so I will need to chase those down. Thanks for trying it out. Can you point me to the sources? I tried downloading a Hexagon SDK when I first looked at it, but only got a huge chunk of binary java files and gave up before finding the llvm patches. Arnd