winapi - 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
解决方案
推荐阅读
- java - Lambda 不会覆盖来自单独文件的接口方法
- c++ - 在#include“iomanip”库中使用 setiosflags() functoin 的科学属性后,如何在 C++ 中将数字恢复为正常形式
- postgresql - Postgres 9.6 视图上的更新规则
- python - 添加keras层的问题
- python - 使用 .loc 方法同时选择多个列和切片列
- gradle - AntBuilder 在 build.gradle.kts 上使用 ant.importBuilder() 导入 2 个或更多 build.xml 时忽略目标
- regex - 匹配第一个单词和最后一个单词之间的文本
- html - 响应式图像 srcset - 总是选择最大的图像
- java - 如何正确连接 HiveMQ 中的身份验证?
- powershell - 如何更改此powershell脚本以取消选中“允许计算机关闭此设备以节省电源”以除以太网之外的Wi-Fi