[PATCH] D23201: [ELF] - Fix for: error "invalid section index: xxx" when linking FreeBSD kernel.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 9 01:14:24 PDT 2016


davide added a comment.

In https://reviews.llvm.org/D23201#509541, @grimar wrote:

> In https://reviews.llvm.org/D23201#509124, @ruiu wrote:
>
> > As Davide pointed out, it needs a testcase. This is a subtle change, and I'm not sure if this is a bug of LLD.
>
>
> I think it is definely not an issue of lld. But since that file was precompiled in the wild and ld works fine here, I think we also should
>  support this case, right ?
>  I`ll try to reduce it and prepare testcase, though I have no idea now how to do that since as I mentioned it is precompiled.


You can probably localize the issue is and create a llvm-mc testcase which reproduces it.
If you can't you can check in a small binary (modified with hexedit or something similar) or use yaml2obj to craft an object of this kind.


https://reviews.llvm.org/D23201





More information about the llvm-commits mailing list