Author: kib
Date: Fri Jan  7 16:07:51 2011
New Revision: 217105
URL: http://svn.freebsd.org/changeset/base/217105

Log:
  Add section .note.GNU-stack for assembly files used by 386 and amd64.

Modified:
  head/lib/csu/amd64/crti.S
  head/lib/csu/amd64/crtn.S
  head/lib/csu/i386-elf/crt1_s.S
  head/lib/csu/i386-elf/crti.S
  head/lib/csu/i386-elf/crtn.S

Modified: head/lib/csu/amd64/crti.S
==============================================================================
--- head/lib/csu/amd64/crti.S   Fri Jan  7 16:07:29 2011        (r217104)
+++ head/lib/csu/amd64/crti.S   Fri Jan  7 16:07:51 2011        (r217105)
@@ -39,3 +39,5 @@ _init:
        .type   _fini,@function
 _fini:
        subq    $8,%rsp
+
+       .section .note.GNU-stack,"",%progbits

Modified: head/lib/csu/amd64/crtn.S
==============================================================================
--- head/lib/csu/amd64/crtn.S   Fri Jan  7 16:07:29 2011        (r217104)
+++ head/lib/csu/amd64/crtn.S   Fri Jan  7 16:07:51 2011        (r217105)
@@ -33,3 +33,5 @@ __FBSDID("$FreeBSD$");
        .section .fini,"ax",@progbits
        addq    $8,%rsp
        ret
+
+       .section .note.GNU-stack,"",%progbits

Modified: head/lib/csu/i386-elf/crt1_s.S
==============================================================================
--- head/lib/csu/i386-elf/crt1_s.S      Fri Jan  7 16:07:29 2011        
(r217104)
+++ head/lib/csu/i386-elf/crt1_s.S      Fri Jan  7 16:07:51 2011        
(r217105)
@@ -49,3 +49,5 @@ _start:
        int3
        .cfi_endproc
        .size   _start, . - _start
+
+       .section .note.GNU-stack,"",%progbits

Modified: head/lib/csu/i386-elf/crti.S
==============================================================================
--- head/lib/csu/i386-elf/crti.S        Fri Jan  7 16:07:29 2011        
(r217104)
+++ head/lib/csu/i386-elf/crti.S        Fri Jan  7 16:07:51 2011        
(r217105)
@@ -39,3 +39,5 @@ _init:
        .type   _fini,@function
 _fini:
        sub     $12,%esp        /* re-align stack pointer */
+
+       .section .note.GNU-stack,"",%progbits

Modified: head/lib/csu/i386-elf/crtn.S
==============================================================================
--- head/lib/csu/i386-elf/crtn.S        Fri Jan  7 16:07:29 2011        
(r217104)
+++ head/lib/csu/i386-elf/crtn.S        Fri Jan  7 16:07:51 2011        
(r217105)
@@ -33,3 +33,5 @@ __FBSDID("$FreeBSD$");
        .section .fini,"ax",@progbits
        add     $12,%esp
        ret
+
+       .section .note.GNU-stack,"",%progbits
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to