[PATCH] D20952: docs: Add AMDGPU relocation information

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 3 08:55:46 PDT 2016


> +
> +  ====================  =====  ==========  ============================
> +  Relocation type       Value  Field       Calculation
> +  ====================  =====  ==========  ============================
> +  ``R_AMDGPU_NONE``     0      ``none``    ``none``
> +  ``R_AMDGPU_32_LOW``   1      ``word32``  (S + A) & 0xFFFFFFFF
> +  ``R_AMDGPU_32_HIGH``  2      ``word32``  ((S + A) >> 32) & 0xFFFFFFFF
> +  ``R_AMDGPU_64``       3      ``word64``  (S + A) & 0xFFFFFFFFFFFFFFFF

You can write R_AMDGPU-64 as just S + A.

> +  ``R_AMDGPU_32``       4      ``word32``  S + A
> +  ====================  =====  ==========  ============================

Please document which ones can be handled by the dynamic linker and
which ones must be statically resolved.

LGTM with that.

Cheers,
Rafael


More information about the llvm-commits mailing list