[lld] r205566 - Fix ELFFileNode::resetNextIndex()

Simon Atanasyan simon at atanasyan.com
Sun May 11 22:36:25 PDT 2014


CC to the mail list and attach the patch directly to the message.

On Mon, May 12, 2014 at 9:28 AM, Simon Atanasyan <simon at atanasyan.com> wrote:
> It looks like this commit introduced the following regression. Suppose we have:
>
>   - Object file `main.o` which refers symbol `RT1`
>   - Object file `obj.o` defines symbol `RT1` and refers symbol `T1`
>   - Shared library libso.so defines symbol `T1`
>
> If we link these files using the following command we incorrectly get an error:
>
>   % lld -flavor gnu -target mipsel -e T -o a.out main.o --start-group libso.so obj.o --end-group
>   Undefined symbol: obj.o: T1
>
> That is because we do not scan the `libso.so` once again to find the `T1` definition. The attached patch {F57334} has a reproduction test case.
>
> http://reviews.llvm.org/rL205566

-- 
Simon Atanasyan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-case.patch
Type: application/octet-stream
Size: 3665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140512/134b97fa/attachment.obj>


More information about the llvm-commits mailing list