[lld] r253352 - [ELF2/AArch64] Add lazy relocation support for AArch64.

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 18 05:15:31 PST 2015


Hi,

I guess, there could be some global symbols with 
R_AARCH64_ADR_PREL_PG_HI21 relocation types.
Could you please send me an output of 'readelf -rs try'?

Thanks!

On 18.11.2015 10:34, Igor Kudrin wrote:
> Hi,
>
> I think it's a long way to go to support all the relocations 
> correctly. We are at very beginning.
>
> In this particular case, it looks like the relocation (275) was 
> preserved in the result file,
> and this is an error, because the dynamic linker isn't able to handle it.
>
> I'll take a look at it. Anyway, I'll really appreciate any help with 
> synthetic testcases.
>
> Thanks!
>
> On 18.11.2015 08:45, Davide Italiano wrote:
>> On Tue, Nov 17, 2015 at 10:01 AM, Igor Kudrin via llvm-commits
>> <llvm-commits at lists.llvm.org> wrote:
>>> Author: ikudrin
>>> Date: Tue Nov 17 12:01:30 2015
>>> New Revision: 253352
>>>
>>> URL: http://llvm.org/viewvc/llvm-project?rev=253352&view=rev
>>> Log:
>>> [ELF2/AArch64] Add lazy relocation support for AArch64.
>>>
>> Hi, I tried this on FreeBSD/AArch64 but I noticed it doesn't resolve
>> all the relocations correctly.
>>
>> % cat try.c
>> #include <stdio.h>
>>
>> int
>> main(void)
>> {
>>    printf("%d\n", 42);
>> }
>>
>> % ./clang -fuse-ld=lld2 try.c -o try
>> % ./try
>> /usr/home/davide/llvm/build/bin/try: Unhandled relocation 275
>> Fatal error
>>
>> 275 is R_AARCH64_ADR_PREL_PG_HI21.
>> Can you please take a look? If you're not able to reproduce I can work
>> on a synthetic testcase.
>>
>> Thanks!
>>
>



More information about the llvm-commits mailing list