From 684621c7f575186cf352d83563cc9fd41488bbd0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 5 Aug 2021 01:20:12 +0900 Subject: [PATCH] Add .note.gnu.property sections --- coroutine/amd64/Context.S | 16 ++++++++++++++++ coroutine/arm32/Context.S | 16 ++++++++++++++++ coroutine/arm64/Context.S | 16 ++++++++++++++++ coroutine/ppc64le/Context.S | 16 ++++++++++++++++ coroutine/riscv64/Context.S | 16 ++++++++++++++++ coroutine/x86/Context.S | 16 ++++++++++++++++ 6 files changed, 96 insertions(+) diff --git a/coroutine/amd64/Context.S b/coroutine/amd64/Context.S index d50732adbc0..ce7089fca56 100644 --- a/coroutine/amd64/Context.S +++ b/coroutine/amd64/Context.S @@ -43,4 +43,20 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer): #if (defined(__linux__) || defined(__FreeBSD__)) && defined(__ELF__) .section .note.GNU-stack,"",%progbits +.section .note.gnu.property,"a" + .p2align 3 + .long 1f - 0f + .long 4f - 1f + .long 5 +0: + .asciz "GNU" +1: + .p2align 3 + .long 0xc0000002 + .long 3f - 2f +2: + .long 3 +3: + .p2align 3 +4: #endif diff --git a/coroutine/arm32/Context.S b/coroutine/arm32/Context.S index 1850c4c4080..10ea610509d 100644 --- a/coroutine/arm32/Context.S +++ b/coroutine/arm32/Context.S @@ -30,4 +30,20 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer): #if defined(__linux__) && defined(__ELF__) .section .note.GNU-stack,"",%progbits +.section .note.gnu.property,"a" + .p2align 2 + .long 1f - 0f + .long 4f - 1f + .long 5 +0: + .asciz "GNU" +1: + .p2align 2 + .long 0xc0000002 + .long 3f - 2f +2: + .long 3 +3: + .p2align 2 +4: #endif diff --git a/coroutine/arm64/Context.S b/coroutine/arm64/Context.S index 07d50d30df3..d2c0505ac2d 100644 --- a/coroutine/arm64/Context.S +++ b/coroutine/arm64/Context.S @@ -70,4 +70,20 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer): #if defined(__linux__) && defined(__ELF__) .section .note.GNU-stack,"",%progbits +.section .note.gnu.property,"a" + .p2align 3 + .long 1f - 0f + .long 4f - 1f + .long 5 +0: + .asciz "GNU" +1: + .p2align 3 + .long 0xc0000002 + .long 3f - 2f +2: + .long 3 +3: + .p2align 3 +4: #endif diff --git a/coroutine/ppc64le/Context.S b/coroutine/ppc64le/Context.S index 61be9efcf04..daba5334909 100644 --- a/coroutine/ppc64le/Context.S +++ b/coroutine/ppc64le/Context.S @@ -72,4 +72,20 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer): #if defined(__linux__) && defined(__ELF__) .section .note.GNU-stack,"",%progbits +.section .note.gnu.property,"a" + .p2align 3 + .long 1f - 0f + .long 4f - 1f + .long 5 +0: + .asciz "GNU" +1: + .p2align 3 + .long 0xc0000002 + .long 3f - 2f +2: + .long 3 +3: + .p2align 3 +4: #endif diff --git a/coroutine/riscv64/Context.S b/coroutine/riscv64/Context.S index cc4e872f84b..b4da3ee4159 100644 --- a/coroutine/riscv64/Context.S +++ b/coroutine/riscv64/Context.S @@ -84,4 +84,20 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer): #if defined(__linux__) && defined(__ELF__) .section .note.GNU-stack,"",%progbits +.section .note.gnu.property,"a" + .p2align 3 + .long 1f - 0f + .long 4f - 1f + .long 5 +0: + .asciz "GNU" +1: + .p2align 3 + .long 0xc0000002 + .long 3f - 2f +2: + .long 3 +3: + .p2align 3 +4: #endif diff --git a/coroutine/x86/Context.S b/coroutine/x86/Context.S index f06a417084b..2e53edbd9fe 100644 --- a/coroutine/x86/Context.S +++ b/coroutine/x86/Context.S @@ -39,4 +39,20 @@ PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer): #if (defined(__linux__) || defined(__FreeBSD__)) && defined(__ELF__) .section .note.GNU-stack,"",%progbits +.section .note.gnu.property,"a" + .p2align 2 + .long 1f - 0f + .long 4f - 1f + .long 5 +0: + .asciz "GNU" +1: + .p2align 2 + .long 0xc0000002 + .long 3f - 2f +2: + .long 3 +3: + .p2align 2 +4: #endif -- 2.32.0