Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NASM 中的 ORG(起源)指令在 GAS 中的等效指令是什么?
编辑:对所有人的警告:.org不是 origin 指令,它似乎反而用00指定的地址填充组装文件。
.org
00
我不了解 NASM,但我的印象是它包含的功能在 GNU 工具链领域被认为是链接器的责任,而不是汇编器的责任。
您可能需要使用自定义.section指令标记您的程序集源,然后编写链接描述文件以将每个部分放在所需的地址。
.section