diff options
Diffstat (limited to 'coroutine/amd64/Context.S')
| -rw-r--r-- | coroutine/amd64/Context.S | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/coroutine/amd64/Context.S b/coroutine/amd64/Context.S index fad59ecdda..4b94d31f30 100644 --- a/coroutine/amd64/Context.S +++ b/coroutine/amd64/Context.S @@ -10,12 +10,11 @@ * one at the bottom of this file */ #define TOKEN_PASTE(x,y) x##y -#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name) .text -.globl PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer) -PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer): +.globl PREFIXED_SYMBOL(coroutine_transfer) +PREFIXED_SYMBOL(coroutine_transfer): #if defined(__CET__) && (__CET__ & 0x01) != 0 /* IBT landing pad */ @@ -60,6 +59,8 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer): .section .note.GNU-stack,"",%progbits #endif +#if defined(__ELF__) + #if defined(__CET__) && (__CET__ & 0x01) != 0 # define IBT_FLAG 0x01 #else @@ -84,3 +85,4 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer): .long 0x0 /* 8-byte alignment padding */ /* End descriptor */ .popsection +#endif |
