X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Fmapi%2Fentry_x86_tls.h;h=bdaa97374ba6bc4a8715f60f499a2910d19256ff;hp=58a27cef18ed539d41e2790af45531c93aafa2d9;hb=e352e7e792699661422218c1dc8ad06b4bbf6652;hpb=9899a8e26c5c9063c3627e246981d727321e5ba3 diff --git a/src/mapi/entry_x86_tls.h b/src/mapi/entry_x86_tls.h index 58a27cef18e..bdaa97374ba 100644 --- a/src/mapi/entry_x86_tls.h +++ b/src/mapi/entry_x86_tls.h @@ -27,6 +27,12 @@ #include +#ifdef __CET__ +#define ENDBR "endbr32\n\t" +#else +#define ENDBR +#endif + #ifdef HAVE_FUNC_ATTRIBUTE_VISIBILITY #define HIDDEN __attribute__((visibility("hidden"))) #else @@ -59,6 +65,7 @@ __asm__(".balign 16\n" func ":" #define STUB_ASM_CODE(slot) \ + ENDBR \ "call 1f\n" \ "1:\n\t" \ "popl %eax\n\t" \