diff options
author | kkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-27 00:07:40 +0000 |
---|---|---|
committer | kkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-27 00:07:40 +0000 |
commit | 644af649919f7c5d7832743015bbeb0833c46772 (patch) | |
tree | dab0566daf77a62be5d2e2d80d84215b9a6c58da /libffi/src | |
parent | 7fa1b395548bd001d175cd25c9f1b38b57e5452f (diff) | |
download | gcc-644af649919f7c5d7832743015bbeb0833c46772.tar.gz |
* src/sh/sysv.S: Add .note.GNU-stack on Linux.
* src/sh64/sysv.S: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133623 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/src')
-rw-r--r-- | libffi/src/sh/sysv.S | 6 | ||||
-rw-r--r-- | libffi/src/sh64/sysv.S | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/libffi/src/sh/sysv.S b/libffi/src/sh/sysv.S index 6628f2d1e5f..80df0061d4f 100644 --- a/libffi/src/sh/sysv.S +++ b/libffi/src/sh/sysv.S @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------- - sysv.S - Copyright (c) 2002, 2003, 2004, 2006 Kaz Kojima + sysv.S - Copyright (c) 2002, 2003, 2004, 2006, 2008 Kaz Kojima SuperH Foreign Function Interface @@ -701,6 +701,10 @@ L_case_v: .ffi_closure_SYSV_end: .size CNAME(ffi_closure_SYSV),.ffi_closure_SYSV_end-CNAME(ffi_closure_SYSV) +#if defined __ELF__ && defined __linux__ + .section .note.GNU-stack,"",@progbits +#endif + .section ".eh_frame","aw",@progbits __FRAME_BEGIN__: .4byte .LECIE1-.LSCIE1 /* Length of Common Information Entry */ diff --git a/libffi/src/sh64/sysv.S b/libffi/src/sh64/sysv.S index bdee4188ec1..5bf6101bbbc 100644 --- a/libffi/src/sh64/sysv.S +++ b/libffi/src/sh64/sysv.S @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------- - sysv.S - Copyright (c) 2003, 2004, 2006 Kaz Kojima + sysv.S - Copyright (c) 2003, 2004, 2006, 2008 Kaz Kojima SuperH SHmedia Foreign Function Interface @@ -437,6 +437,10 @@ ENTRY(ffi_closure_SYSV) .ffi_closure_SYSV_end: .size CNAME(ffi_closure_SYSV),.ffi_closure_SYSV_end-CNAME(ffi_closure_SYSV) +#if defined __ELF__ && defined __linux__ + .section .note.GNU-stack,"",@progbits +#endif + .section ".eh_frame","aw",@progbits __FRAME_BEGIN__: .4byte .LECIE1-.LSCIE1 /* Length of Common Information Entry */ |