[PATCH] D42823: Strip .note.gnu.build-id sections if --build-id is given.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 15:44:21 PST 2018


On Thu, Feb 1, 2018 at 3:41 PM, Rafael Avila de Espindola <
rafael.espindola at gmail.com> wrote:

> Rui Ueyama via Phabricator <reviews at reviews.llvm.org> writes:
>
> > +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
> > +# RUN: ld.lld --build-id=0xcafebabe -o %t2.o %t1.o
> > +# RUN: ld.lld --build-id=0xdeadbeef -o %t.exe %t2.o
>
> In here %t2.o is actually an executable. When trying to link %t.exe gold
> errors with
>
> ld.gold: error: test2.o: unsupported ELF file type 2
>

Oh, that's a mistake. I'll fix it and upload a new patch.


> Could we do the same (with a better error message)?
>

We should do that, but I'll do that in another patch.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180201/f1ce015f/attachment.html>


More information about the llvm-commits mailing list