IAR 问题:Label 'Reset_Handler' is defined pubweak in a section implicitly declared root

IAR编译STM32的M3,早期的版本,需要使用core_cm3文件,6版后就不使用它了。

在使用6版的编译成功的项目,现在使用7.1编译,就会出警告,
它来自:
   startup_stm32f10x_hd.s
文件,内容如:
    Warning[25]: Label 'Reset_Handler' is defined pubweak in a section implicitly declared root
等,产生的map文件中:
           .intvec            ro code  0x08000000    0x130  startup_stm32f10x_hd.o [1]

                                            - 0x08000130    0x130


解决方法:

Problem

After upgrading to EWARM 7.10.1 the Warning[25] is issued during assembly of a file that assembled without warning on earlier version of EWARM.

Background

The assembler (iasmarm) is (from EWARM 7.10.1) issuing Warning[25] for a deprecated assembler construction.

The deprecated assembler source construction looks like this:

      PUBWEAK NMI_Handler
      SECTION .text:CODE:REORDER(1)
  NMI_Handler
Solution

To avoid the warning, add ":NOROOT" to the "SECTION" statement:

      PUBWEAK NMI_Handler
      SECTION .text:CODE:REORDER:NOROOT(1)
  NMI_Handler

你可能感兴趣的:(IAR 问题:Label 'Reset_Handler' is defined pubweak in a section implicitly declared root)