1

相关代码:

 23 %define data rsi
...
 33 
 34 extern g_4sha256_k
 35 
...
239 
240         movntdqa        xmm6, [data+rax*4]
241         paddd   xmm6, dword g_4sha256_k[rax*4]
242         add     rax, 4

yasm 构建错误:

sha256_sse4_amd64.asm:241: error: macho: sorry, cannot apply 32 bit absolute relocations in 64 bit mode, consider "[_symbol wrt rip]" for mem access, "qword" and "dq _foo" for pointers.

我对这些 x64 asm 代码知之甚少,有人可以帮我修复paddd指令中的这个错误吗?

4

0 回答 0