From 97759929a0238b61c42d8b47aec5dbf1c63f79c7 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 11 Sep 2014 11:05:12 +0200 Subject: [PATCH] linux64.S: Emit .note.GNU-stack even when POWERPC64 is not defined. * src/powerpc/linux64.S: Emit .note.GNU-stack even when POWERPC64 is not defined. * src/powerpc/linux64_closure.S: Likewise. Also test _CALL_ELF == 2. From-SVN: r215157 --- libffi/ChangeLog | 6 ++++++ libffi/src/powerpc/linux64.S | 5 +++-- libffi/src/powerpc/linux64_closure.S | 5 +++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/libffi/ChangeLog b/libffi/ChangeLog index ffab7e6321d0..0b4a3726d813 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,9 @@ +2014-09-11 Jakub Jelinek + + * src/powerpc/linux64.S: Emit .note.GNU-stack even when + POWERPC64 is not defined. + * src/powerpc/linux64_closure.S: Likewise. Also test _CALL_ELF == 2. + 2014-05-22 Release Manager * GCC 4.8.3 released. diff --git a/libffi/src/powerpc/linux64.S b/libffi/src/powerpc/linux64.S index c4d01d8e3f7a..d2acb7007b0a 100644 --- a/libffi/src/powerpc/linux64.S +++ b/libffi/src/powerpc/linux64.S @@ -254,7 +254,8 @@ ffi_call_LINUX64: .align 3 .LEFDE1: -# if (defined __ELF__ && defined __linux__) || _CALL_ELF == 2 +#endif + +#if (defined __ELF__ && defined __linux__) || _CALL_ELF == 2 .section .note.GNU-stack,"",@progbits -# endif #endif diff --git a/libffi/src/powerpc/linux64_closure.S b/libffi/src/powerpc/linux64_closure.S index 46a9ddfcd6b0..1d80a39490b5 100644 --- a/libffi/src/powerpc/linux64_closure.S +++ b/libffi/src/powerpc/linux64_closure.S @@ -381,7 +381,8 @@ ffi_closure_LINUX64: .align 3 .LEFDE1: -# if defined __ELF__ && defined __linux__ +#endif + +#if (defined __ELF__ && defined __linux__) || _CALL_ELF == 2 .section .note.GNU-stack,"",@progbits -# endif #endif -- 2.47.2