[llvm] r219829 - Correctly handle references to section symbols.

Rui Ueyama ruiu at google.com
Thu Oct 16 15:24:18 PDT 2014


Previously, relocations applied to .rela.ctors sections in an object file
pointed to different .text.startup sections in the same file, but after
this patch they point to the same .text.startup section. Because this patch
handles section names, it's likely that there's something with that.

Sorry for the frequent and incomplete updates. I'll let you know once I get
a reproducible test case.

On Thu, Oct 16, 2014 at 2:43 PM, Rui Ueyama <ruiu at google.com> wrote:

> On Thu, Oct 16, 2014 at 2:40 PM, Rafael EspĂ­ndola <
> rafael.espindola at gmail.com> wrote:
>
>> > I compared the DSOs built with and without this patch, and found that
>> > although the size of .ctor sections are the same, the bad DSO contains
>> > repetition. So some constructors are called more than once (and probably
>> > some are not called at all). That seems the direct cause of the issue.
>> >
>> > The test is gigantic and having a lot of dependencies. It takes a
>> little bit
>> > more time to understand what's going on there.
>>
>> Is it open source? I would be more than happy to help reduce it.
>>
>
> Sorry, no it's not. I'll try to create a minimal test case to reproduce
> the issue.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141016/13a25b8a/attachment.html>


More information about the llvm-commits mailing list