[PATCH] D29282: [ELF] - Report filename for unknown relocation error.

bd1976 llvm via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 31 01:09:21 PST 2017


What would the output look like if the elf was in an archive?

On Mon, Jan 30, 2017 at 5:31 PM, Rafael Avila de Espindola via llvm-commits
<llvm-commits at lists.llvm.org> wrote:

> George Rimar via Phabricator <reviews at reviews.llvm.org> writes:
> > ===================================================================
> > --- test/ELF/invalid/invalid-relocation-x64.test
> > +++ test/ELF/invalid/invalid-relocation-x64.test
> > @@ -26,5 +26,5 @@
> >          Type:            R_X86_64_NONE
> >
> >  # RUN: not ld.lld %p/Inputs/invalid-relocation-x64.elf -o %t2 2>&1 |
> FileCheck %s
> > -# CHECK: unknown relocation type: Unknown (152)
> > -# CHECK: unknown relocation type: Unknown (153)
> > +# CHECK: {{.*}}: unknown relocation type: Unknown (152)
> > +# CHECK: {{.*}}: unknown relocation type: Unknown (153)
>
> You can probably use invalid-relocation-x64.elf in the check
> pattern. The full patch is not known, but the filename should be stable.
>
> This is fine with me. Rui?
>
> Cheers,
> Rafael
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170131/deddd2e1/attachment.html>


More information about the llvm-commits mailing list