diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-09-11 11:03:49 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-09-11 11:03:49 +0200 |
commit | 1138382be4d85b63ce398cd088db1a95899e9c22 (patch) | |
tree | d59c0dfbd56c44219c99af29c2c0e3905697ef2a /libffi | |
parent | ea3f2b240febca348d795e19ba908a34f78b206d (diff) | |
download | gcc-1138382be4d85b63ce398cd088db1a95899e9c22.zip gcc-1138382be4d85b63ce398cd088db1a95899e9c22.tar.gz gcc-1138382be4d85b63ce398cd088db1a95899e9c22.tar.bz2 |
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: r215155
Diffstat (limited to 'libffi')
-rw-r--r-- | libffi/ChangeLog | 6 | ||||
-rw-r--r-- | libffi/src/powerpc/linux64.S | 5 | ||||
-rw-r--r-- | libffi/src/powerpc/linux64_closure.S | 5 |
3 files changed, 12 insertions, 4 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog index a2db366..ee6c476 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,9 @@ +2014-09-11 Jakub Jelinek <jakub@redhat.com> + + * 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-07-21 Uros Bizjak <ubizjak@gmail.com> * src/alpha/ffi.c: Do not include stdlib.h. diff --git a/libffi/src/powerpc/linux64.S b/libffi/src/powerpc/linux64.S index c4d01d8..d2acb70 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 46a9ddf..1d80a39 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 |