[PATCH] D13104: Mips - Mark the section .eh_frame as writeable for pic

Logan Chien via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 27 09:31:57 PDT 2015


logan added a comment.

In http://reviews.llvm.org/D13104#252365, @logan wrote:

> I was only testing `clang+ld.bfd` and `clang+ld.gold` at the time.


Correction: I was wrong in the previous comment.  I only tested `clang+ld.bfd` at the time.

I tried to use `ld.gold` to link the attached relocatable file these days [1].  However there are two problems:

- It seems that `ld.gold` won't be built for `mipsel-linux-gnueabi` by default (with `--enable-gold`.)

- Even if I built `ld.gold` with some hacks, it will raise an internal error while reading the attached relocatable file [1].

So, it seems that the **BFD linker** is the **only working linker**.

BTW, IMHO, it worth to create a bug report on the **MIPS PIC relocations** at the Bugzilla <https://llvm.org/bugs/>.  It will make it easier to search for the discussion on this topic.

[1] Bug report for the MClinker: https://groups.google.com/forum/#!topic/mclinker/9eJJGDjIwy4


Repository:
  rL LLVM

http://reviews.llvm.org/D13104





More information about the llvm-commits mailing list