George Rimar via llvm-dev
2016-Jan-20 17:35 UTC
[llvm-dev] Bug 26222 - [ELF] wrong functions are called when linking against DSO
?Hi, I found a new issue in lld (https://llvm.org/bugs/show_bug.cgi?id=26222), but after review of outputs internals still have no idea why that can happen. Do you have any thoughts about possible reasons of that ? I am going to continue investigating that tomorrow. Best regards, George. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160120/40856448/attachment.html>
Rui Ueyama via llvm-dev
2016-Jan-20 19:43 UTC
[llvm-dev] Bug 26222 - [ELF] wrong functions are called when linking against DSO
I think it is because the main executable do not export symbols that exist both in the main executable and in DSOs. If a symbol in an object file overrides a symbol in an DSO, we want to call setUsedInDynamicReloc() on that symbol so that the symbol is exported. On Wed, Jan 20, 2016 at 9:35 AM, George Rimar <grimar at accesssoftek.com> wrote:> Hi, > > > I found a new issue in lld (https://llvm.org/bugs/show_bug.cgi?id=26222), > > but after review of outputs internals still have no idea why that can > happen. Do you have any thoughts about possible reasons of that ? > > I am going to continue investigating that tomorrow. > > > Best regards, > George. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160120/42b58325/attachment.html>
George Rimar via llvm-dev
2016-Jan-21 12:57 UTC
[llvm-dev] Bug 26222 - [ELF] wrong functions are called when linking against DSO
?That works, thanks ! I`ll submit the patch later today (have to prepare test(s)). Best regards, George. ________________________________ От: Rui Ueyama <ruiu at google.com> Отправлено: 20 января 2016 г. 22:43 Кому: George Rimar Копия: rafael.espindola at gmail.com; llvm-dev at lists.llvm.org Тема: Re: Bug 26222 - [ELF] wrong functions are called when linking against DSO I think it is because the main executable do not export symbols that exist both in the main executable and in DSOs. If a symbol in an object file overrides a symbol in an DSO, we want to call setUsedInDynamicReloc() on that symbol so that the symbol is exported. On Wed, Jan 20, 2016 at 9:35 AM, George Rimar <grimar at accesssoftek.com<mailto:grimar at accesssoftek.com>> wrote: ?Hi, I found a new issue in lld (https://llvm.org/bugs/show_bug.cgi?id=26222), but after review of outputs internals still have no idea why that can happen. Do you have any thoughts about possible reasons of that ? I am going to continue investigating that tomorrow. Best regards, George. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160121/1cf08e2c/attachment-0001.html>