OSDN Git Service

* src/sh/sysv.S: Add .note.GNU-stack on Linux.
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Mar 2008 00:07:40 +0000 (00:07 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Mar 2008 00:07:40 +0000 (00:07 +0000)
* src/sh64/sysv.S: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133623 138bc75d-0d04-0410-961f-82ee72b054a4

libffi/ChangeLog
libffi/src/sh/sysv.S
libffi/src/sh64/sysv.S

index b6f0b69..b1e08f7 100644 (file)
@@ -1,3 +1,8 @@
+2008-03-26  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       * src/sh/sysv.S: Add .note.GNU-stack on Linux.
+       * src/sh64/sysv.S: Likewise.
+
 2008-03-26  Daniel Jacobowitz  <dan@debian.org>
 
        * src/arm/sysv.S: Fix ARM comment marker.
index 6628f2d..80df006 100644 (file)
@@ -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 */
index bdee418..5bf6101 100644 (file)
@@ -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 */