[PATCH] D48095: [ELF][X86_64] Use R_GOTREL_FROM_END instead of R_GOTREL for R_X86_64_GOTOFF64

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 13 15:31:20 PDT 2018


ruiu added a comment.

> The clang way: one movabsq plus a R_X86_64_RELATIVE relocation that is supposed to be resolved by the dynamic loader.
>  The GCC way: two instructions but no relocation to be resolved.
> 
> The clang way is still position-independent.

Is that true? Clang's output needs text relocations which in many cases prohibited. As a result, clang's output won't work in many environments.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D48095





More information about the llvm-commits mailing list