]> granicus.if.org Git - yasm/commitdiff
elf: Add support for 64-bit PC-relative relocation.
authorPeter Johnson <peter@tortall.net>
Tue, 21 Jul 2009 06:49:44 +0000 (06:49 -0000)
committerPeter Johnson <peter@tortall.net>
Tue, 21 Jul 2009 06:49:44 +0000 (06:49 -0000)
svn path=/trunk/yasm/; revision=2207

modules/objfmts/elf/elf-x86-amd64.c

index bdaf82faab3d7047dca768af680cac799b0e6bec..23675d647f4e84e69cabf11f4619c0d71c937751 100644 (file)
@@ -169,6 +169,7 @@ elf_x86_amd64_map_reloc_info_to_type(elf_reloc_entry *reloc)
             case 8: return (unsigned char) R_X86_64_PC8;
             case 16: return (unsigned char) R_X86_64_PC16;
             case 32: return (unsigned char) R_X86_64_PC32;
+            case 64: return (unsigned char) R_X86_64_PC64;
             default: yasm_internal_error(N_("Unsupported relocation size"));
         }
     } else {