[lld] r248056 - [elf2] Relocate against undefined weak symbols.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 15:32:25 PDT 2015


> +.global _start
> +_start:
> +  movl $1, sym1(%rip)
> +
> +.weak sym1
> +
> +// CHECK: movl    $1, -69642(%rip)
>

Please expand the description on why -69642 is the correct answer. See
got.s for an example.

Cheers,
Rafael


More information about the llvm-commits mailing list