Add missing CET (Control-flow Enforcement Technology) bits in asm code

Adding .note.gnu.property section data.

#23
This commit is contained in:
Kim Woelders 2024-04-16 08:08:04 +02:00
parent 0f378ef87f
commit 699fc2b8b5
1 changed files with 8 additions and 7 deletions

View File

@ -17,14 +17,15 @@
.size PR_(sym),.-PR_(sym); \
.align 8;
#ifdef __CET__
#if defined(DO_MMX_ASM)
#define ENDBR_ endbr32
#elif defined(DO_AMD64_ASM)
#define ENDBR_ endbr64
#endif
#else
#define ENDBR_
#ifdef __CET__
#ifdef __has_include
#if __has_include(<cet.h>)
#include <cet.h>
#undef ENDBR_
#define ENDBR_ _CET_ENDBR
#endif
#endif
#endif
#endif /* __ASM_H */