IAR6.x升級到IAR7.x在引導文件出現的Warning

出現的警告內容:

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


把SECTION .text:CODE:REORDER(1)

改成
SECTION .text:CODE:REORDER:NOROOT(1)

SECTION .text:CODE:REORDER:ROOT(1)    

NOROOT和 ROOT 的區別,NOROOT表示如果符號沒有被關聯的時候是被優化掉的,如果想不被優化則使用ROOT.


官網解決方法:SECTION .text:CODE:REORDER:NOROOT(1),文件鏈接

https://www.iar.com/support/tech-notes/assembler/warning25-label-xxxxx-is-defined-pubweak-in-a-section-implicitly-declared-root/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章