[llvm-dev] [LLD][ELF] Dynamic relocations list depends on the input files order

Simon Atanasyan via llvm-dev llvm-dev at lists.llvm.org
Fri Apr 8 09:57:03 PDT 2016


Hi,

I have created D18862 to solve this problem. But if you see light at
the end of the tunnel with the D18711 I will wait result of your work.
It is not a problem. Anyway I will not forget about this issue.

Regards,
Simon

On Thu, Apr 7, 2016 at 9:16 PM, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
> Interesting issues. Would you mind reporting a bug?
>
> As for D1871, really sorry for the delay. Taking a look at the missing
> issues found some yaks. I think the last one is properly shaved with
> r265682 and I should be able to upload a new version of D1871 today.
>
> Thanks,
> Rafael
>
> On 4 April 2016 at 10:52, Simon Atanasyan <simon at atanasyan.com> wrote:
>> Hi,
>>
>> For MIPS it is possible that output executable file contains both GOT
>> entry and R_MIPS_COPY or R_MIPS_REL32 relocation for the same target
>> symbol. If LLD processes the relocation requires GOT entry before the
>> relocation requires COPY dynamic relocation, it generates the correct
>> output. If the order is reversed, LLD emits COPY dynamic relocation
>> only and does not generate a GOT entry (or shows an error in case of
>> x86 target).
>>
>> It looks like the same problem affects other targets too, so I show a
>> reproduction script for x86 target.


More information about the llvm-dev mailing list