[PATCH] Use dwarf-2 by default on OpenBSD and FreeBSD

Ed Maste emaste at freebsd.org
Thu Jun 12 14:27:02 PDT 2014


On 12 June 2014 14:17, Eric Christopher <echristo at gmail.com> wrote:
>> Here is a patch inspired by a patch I noticed in the FreeBSD LLVM tree to
>> utilize dwarf-2 by default on OpenBSD and FreeBSD.
>
> Sad.
>
> Why?

In FreeBBSD's case we have some toolchain components in the base
system that are rather old, and they don't handle dwarf4.  For
example, we have GNU binutils (including ld) 2.17.50, and gdb 6.1.1.

We have a tightly-integrated "base system" that's developed, built,
tested, and released as a whole, and it includes the kernel,
toolchain, basic daemons, and such.  Everything else is found in the
ports collection.  The project has decided not to have GPLv3
components in the base system, so we're essentially stuck until we can
replace those components.  (GPLv3 is fine in the ports collection.
All license types can be found there, including GPLv3 and
proprietary.)

We're well on our way to migrating to LLDB, which works quite well for
us already (on x86).  At this point the biggest hurdle is the linker;
once we can migrate to a compelling replacement we won't need to force
dwarf2.



More information about the cfe-commits mailing list