Subject: LC040 fpu emulation workaround
To: None <>
From: John Klos <>
List: port-m68k
Date: 02/25/2002 16:40:02

> on an LC040, finally.  I've been playing around with getting NetBSD
> 1.5.2 to run better on my PB540c, just because I like portable
> systems, and I've finally gotten ls -l, a common program to segfault
> randomly, to run ok.  I did this by building a subset of libc with
> -msoft-float and also building in the gcc soft float emulator from the
> arm and sh3 ports into my cut down libc.  When ls is linked with this
> cut down libc in front of the normal libc library then ls -l doesn't
> segfault anymore.

This is something that I've also been looking into for a while; I think
it'd be totally feasable for this to be added to the new NetBSD toolchain
to be included in 1.6.

I have two machines currently running 1.5-current with the new toolchain
and ELF. If these patches can be put cleanly into the m68k tree, we can
make binary snapshots for Amiga and Mac immediately, and start testing.

> The gory and incomplete details can be found at
>  This is only a
> temporary step and only for NetBSD, though the same principle should
> work for any system.
> Basically this is a step towards bootstrapping a full build of libc,
> and, once that is done, a build of all the programs which randomly
> segfault.

I will try out your directions on one of these ELF / new toolchain systems
and report my status soon.

John Klos