首页 > 解决方案 > Alink (Assembly) - Relocs x: 警告 16 位字段中的 32 位偏移

问题描述

当我尝试使用链接我的Nasm编译代码时,Alink我得到了 Error Relocs x:Warning 32 bit offset in 16 bit field。如果我从代码中删除 .text 部分,此错误就会消失。

不工作:

section .text USE32
..start:
mov eax, ebx ;just example code
ret

是否有效:

..start:
mov eax, ebx ;just example code
ret

标签: winapiassemblyx86linkernasm

解决方案


推荐阅读