[PATCH] D14655: [mips] Make the .eh_frame writable on FreeBSD to work around issues in the old linker.

Ed Maste via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 07:39:24 PST 2015


emaste added a comment.

In http://reviews.llvm.org/D14655#288914, @dsanders wrote:

> I'm told that they can't update to a newer GNU Ld because FreeBSD chose to reject GPLv3. Their plan as it has been explained to me is to get any build working with clang as the system compiler, then work on making lld the default linker. I therefore see this as a stepping stone for getting to the correct place and would want to revert this patch as soon as I'm able to.


Our plan is indeed to use Clang as the system compiler and LLD as the system linker on all of our supported platforms as they become functional. In the interim we'll use one of these options:

1. Try to work around binutils 2.17.50 limitations
2. Have two versions of binutils in the tree, with a build-time switch
3. Exclude ld from the base system for MIPS, requiring the installation of a binutils port to have a usable toolchain

The third option above is what we do for arm64 today and it works well, but makes bootstrapping a system more awkward. Also upstream binutils lacks FreeBSD/MIPS support, so there's work that needs to be done just to make a newer ld available.


http://reviews.llvm.org/D14655





More information about the llvm-commits mailing list