[PATCH] D55311: Add support for OUTPUT_ARCH linker script command

Bill Wendling via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 5 15:23:15 PST 2018


void added a comment.

In D55311#1320722 <https://reviews.llvm.org/D55311#1320722>, @grimar wrote:

> In D55311#1320583 <https://reviews.llvm.org/D55311#1320583>, @void wrote:
>
> > In D55311#1320159 <https://reviews.llvm.org/D55311#1320159>, @ruiu wrote:
> >
> > > What is the motivation to do this? We don't try too hard to implement every detail of the linker script because it's just too complicated and there is usually an easy workaround that works without a linker script.
> >
> >
> > The motivation is to support linking Linux, which uses linker scripts heavily. I added a comment by IanT from another thread about why this is a good addition.
>
>
> Now I remember. We saw this bug earlier and decided to report an issue to linux kernel and not change the linker.
>  Bug reported here: https://bugzilla.kernel.org/show_bug.cgi?id=194091.


That bug report is very old and no action has been taken on it. From what I copied above from Ian Taylor, the bug you reported isn't actually a bug, but a misunderstanding of what the `-m` flag means.


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55311/new/

https://reviews.llvm.org/D55311





More information about the llvm-commits mailing list