Skip to content

Commit 85aecf6

Browse files
david-hazi-armdavidvincze
authored andcommitted
iar: Avoid using double colons when defining labels
Using double colons (::) creates global labels, which can lead to linker errors or symbol conflicts in certain cases. Switch to single colon (:) to keep labels local and prevent duplicate definitions. Signed-off-by: Dávid Házi <david.hazi@arm.com>
1 parent d319cbc commit 85aecf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/bootutil/include/bootutil/fault_injection_hardening.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ void fih_cfi_decrement(void);
277277
* after compilation. Does not require debug symbols.
278278
*/
279279
#if defined(__ICCARM__)
280-
#define FIH_LABEL(str, lin, cnt) __asm volatile ("FIH_LABEL_" str "_" #lin "_" #cnt "::" ::);
280+
#define FIH_LABEL(str, lin, cnt) __asm volatile ("FIH_LABEL_" str "_" #lin "_" #cnt ":" ::);
281281
#elif defined(__APPLE__)
282282
#define FIH_LABEL(str) do {} while (0)
283283
#else

0 commit comments

Comments
 (0)