Warning[25]: Label 'xxxxx' is defined pubweak in a section implicitly declared root

PUBWEAK NMI_Handler
SECTION .text:CODE:REORDER(1)
NMI_Handler
修改为
PUBWEAK NMI_Handler
SECTION .text:CODE:REORDER:NOROOT(1)
NMI_Handler
本文详细介绍了如何解决在代码中遇到的警告:Pubweak标签在隐式声明的根节中被定义。通过将NMI_Handler函数的声明部分从'REORDER(1)'更改为'REORDER:NOROOT(1)',可以有效地解决此问题。
Warning[25]: Label 'xxxxx' is defined pubweak in a section implicitly declared root

PUBWEAK NMI_Handler
SECTION .text:CODE:REORDER(1)
NMI_Handler
修改为
PUBWEAK NMI_Handler
SECTION .text:CODE:REORDER:NOROOT(1)
NMI_Handler
3079

被折叠的 条评论
为什么被折叠?