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

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 17 18:45:08 PST 2015


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!

-- 
Davide

"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare


More information about the llvm-commits mailing list