kzhuravl added a comment. Can you add a test? something along these lines: http://reviews.llvm.org/file/data/lxwxdp2mphkmmbhdplym/PHID-FILE-z7hdaz3x2zhor57rst56/test_Object_AMDGPU_elf64-relocs.yaml for each relocation. http://reviews.llvm.org/D21443