From owner-freebsd-mips@freebsd.org Tue Aug 27 17:18:42 2019 Return-Path: Delivered-To: freebsd-mips@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4A750DAB8D for ; Tue, 27 Aug 2019 17:18:42 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46HwZV1Dmdz46d7; Tue, 27 Aug 2019 17:18:42 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id ECC33758D; Tue, 27 Aug 2019 17:18:41 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-wm1-f46.google.com with SMTP id f72so3905239wmf.5; Tue, 27 Aug 2019 10:18:41 -0700 (PDT) X-Gm-Message-State: APjAAAVrfjbzzuxR3WUUJPumWujfhmHuHNLort6egL3/HSPoqZYObUr4 X88ffMZofrMZ6LyJC8JLM+PeakGUZ+ZtCsujVdw= X-Google-Smtp-Source: APXvYqyVhiAdKN8uCbAN7+33yMSoYbyULdC9TTtTFCp41xaXEaev3tM2IKfZupqgzhQEQ1Qn4ZtDefieU4XdPYAXGDQ= X-Received: by 2002:a1c:7619:: with SMTP id r25mr30699300wmc.153.1566926320787; Tue, 27 Aug 2019 10:18:40 -0700 (PDT) MIME-Version: 1.0 References: <441318706.278852.1566618835359.JavaMail.yahoo.ref@jws705006.mail.kks.yahoo.co.jp> <441318706.278852.1566618835359.JavaMail.yahoo@jws705006.mail.kks.yahoo.co.jp> In-Reply-To: From: Kyle Evans Date: Tue, 27 Aug 2019 12:18:28 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: gcc 4.2.1 will delete To: Warner Losh Cc: Mori Hiroki , freebsd-mips@freebsd.org, Ed Maste Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Aug 2019 17:18:42 -0000 On Tue, Aug 27, 2019 at 11:59 AM Kyle Evans wrote: > > (CC'ing emaste@ as well, because this is a bit of a status report) > > On Fri, Aug 23, 2019 at 11:01 PM Warner Losh wrote: > > > > On Fri, Aug 23, 2019, 9:54 PM Mori Hiroki wrote: > > > > > Hi > > > > > > gcc 4.2.1 will delete. > > > > > > How about go mips architecture ? > > > > > > https://reviews.freebsd.org/rS351429 > > > > > > There is good support for an external toolchain today. Clang has some > > support, but it works a lot better in llvm 9.0, which is due in about a > > month. > > > > Warner > > > > I have the following open work for mips32 w/ in-tree llvm (and llvm90 > has the same issues for some of them): > - https://reviews.freebsd.org/D21435 (_mcount needs to be explicitly > placed in .text; clang will emit ".section .mdebug.abi32" before > everything else so _mcount ends up in it -- I don't think we can > really blame clang, we probably should've specified) > > - https://people.freebsd.org/~kevans/mips-llvm.diff (.eh_frame ends up > with some relocations we can't have in non-writable section; dirty > dirty hack to make .eh_frame writable in clang and making sure the > synthetic section that lld produces is also writable [this part's even > dirtier than the first]) > > - https://people.freebsd.org/~kevans/mips-opts.diff (fusefs tests > currently hang and I haven't had time to figure out why or try and > reproduce it against llvm90; the rest of the diff is simply enabling > full LLVM/LLD world) > > With these three I can make build and install a world w/ MALTA kernel, > all otherwise modified, and things generally work except kldxref: > > Building /boot/kernel/linker.hints > kldxref: /boot/kernel/kernel: too many segments > > root@:~ # uname -a > FreeBSD 13.0-CURRENT FreeBSD 13.0-CURRENT #0 > b101f7f4b1d-c262228(mips-llvm)-dirty: Tue Aug 27 09:42:00 CDT 2019 > root@viper.audeuro.com:/usr/obj/usr/src/mips-llvm/sys/MALTA mips > > Next step, I'll fudge this into freebsd-wifi-build and test it on the > hardware in my test lab... > I almost forgot this one: - https://people.freebsd.org/~kevans/mips-csu.diff I pulled a .cprestore directive out of thin air because, AFAICT, it really doesn't matter. We do similar hijinks in ^/sys/mips/include/profile.h, apparently, in MCOUNT.