From owner-svn-src-head@FreeBSD.ORG Fri Jan 14 11:33:40 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92B931065674; Fri, 14 Jan 2011 11:33:40 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 801578FC12; Fri, 14 Jan 2011 11:33:40 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p0EBXe5s086563; Fri, 14 Jan 2011 11:33:40 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p0EBXePS086538; Fri, 14 Jan 2011 11:33:40 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201101141133.p0EBXePS086538@svn.freebsd.org> From: Konstantin Belousov Date: Fri, 14 Jan 2011 11:33:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r217398 - in head/lib/libc: powerpc/gen powerpc/sys powerpc64/gen powerpc64/sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2011 11:33:40 -0000 Author: kib Date: Fri Jan 14 11:33:40 2011 New Revision: 217398 URL: http://svn.freebsd.org/changeset/base/217398 Log: Mark assembler sources from libc as working with non-executable stack. Reviewed and tested by: nwhitehorn Modified: head/lib/libc/powerpc/gen/_ctx_start.S head/lib/libc/powerpc/gen/_setjmp.S head/lib/libc/powerpc/gen/fabs.S head/lib/libc/powerpc/gen/setjmp.S head/lib/libc/powerpc/gen/sigsetjmp.S head/lib/libc/powerpc/sys/brk.S head/lib/libc/powerpc/sys/cerror.S head/lib/libc/powerpc/sys/exect.S head/lib/libc/powerpc/sys/pipe.S head/lib/libc/powerpc/sys/ptrace.S head/lib/libc/powerpc/sys/sbrk.S head/lib/libc/powerpc/sys/setlogin.S head/lib/libc/powerpc64/gen/_ctx_start.S head/lib/libc/powerpc64/gen/_setjmp.S head/lib/libc/powerpc64/gen/fabs.S head/lib/libc/powerpc64/gen/setjmp.S head/lib/libc/powerpc64/gen/sigsetjmp.S head/lib/libc/powerpc64/sys/brk.S head/lib/libc/powerpc64/sys/cerror.S head/lib/libc/powerpc64/sys/exect.S head/lib/libc/powerpc64/sys/pipe.S head/lib/libc/powerpc64/sys/ptrace.S head/lib/libc/powerpc64/sys/sbrk.S head/lib/libc/powerpc64/sys/setlogin.S Modified: head/lib/libc/powerpc/gen/_ctx_start.S ============================================================================== --- head/lib/libc/powerpc/gen/_ctx_start.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc/gen/_ctx_start.S Fri Jan 14 11:33:40 2011 (r217398) @@ -41,3 +41,5 @@ * above branch. */ bl PIC_PLT(CNAME(abort)) /* abort */ + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc/gen/_setjmp.S ============================================================================== --- head/lib/libc/powerpc/gen/_setjmp.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc/gen/_setjmp.S Fri Jan 14 11:33:40 2011 (r217398) @@ -69,3 +69,5 @@ ENTRY(_longjmp) bnelr li %r3,1 blr + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc/gen/fabs.S ============================================================================== --- head/lib/libc/powerpc/gen/fabs.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc/gen/fabs.S Fri Jan 14 11:33:40 2011 (r217398) @@ -33,3 +33,5 @@ __FBSDID("$FreeBSD$"); ENTRY(fabs) fabs %f1,%f1 blr + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc/gen/setjmp.S ============================================================================== --- head/lib/libc/powerpc/gen/setjmp.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc/gen/setjmp.S Fri Jan 14 11:33:40 2011 (r217398) @@ -89,3 +89,4 @@ ENTRY(__longjmp) li %r3,1 blr + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc/gen/sigsetjmp.S ============================================================================== --- head/lib/libc/powerpc/gen/sigsetjmp.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc/gen/sigsetjmp.S Fri Jan 14 11:33:40 2011 (r217398) @@ -95,3 +95,5 @@ ENTRY(siglongjmp) bnelr li %r3,1 blr + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc/sys/brk.S ============================================================================== --- head/lib/libc/powerpc/sys/brk.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc/sys/brk.S Fri Jan 14 11:33:40 2011 (r217398) @@ -71,3 +71,5 @@ ENTRY(brk) 1: b PIC_PLT(HIDENAME(cerror)) + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc/sys/cerror.S ============================================================================== --- head/lib/libc/powerpc/sys/cerror.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc/sys/cerror.S Fri Jan 14 11:33:40 2011 (r217398) @@ -54,4 +54,4 @@ HIDENAME(cerror): li %r4,-1 blr /* return to callers caller */ - + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc/sys/exect.S ============================================================================== --- head/lib/libc/powerpc/sys/exect.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc/sys/exect.S Fri Jan 14 11:33:40 2011 (r217398) @@ -37,3 +37,5 @@ ENTRY(exect) blr 1: b PIC_PLT(HIDENAME(cerror)) + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc/sys/pipe.S ============================================================================== --- head/lib/libc/powerpc/sys/pipe.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc/sys/pipe.S Fri Jan 14 11:33:40 2011 (r217398) @@ -41,3 +41,5 @@ ENTRY(pipe) blr /* and return 0 */ 1: b PIC_PLT(HIDENAME(cerror)) + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc/sys/ptrace.S ============================================================================== --- head/lib/libc/powerpc/sys/ptrace.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc/sys/ptrace.S Fri Jan 14 11:33:40 2011 (r217398) @@ -56,3 +56,5 @@ ENTRY(ptrace) blr 1: b PIC_PLT(HIDENAME(cerror)) + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc/sys/sbrk.S ============================================================================== --- head/lib/libc/powerpc/sys/sbrk.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc/sys/sbrk.S Fri Jan 14 11:33:40 2011 (r217398) @@ -68,3 +68,5 @@ ENTRY(sbrk) blr 2: b PIC_PLT(HIDENAME(cerror)) + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc/sys/setlogin.S ============================================================================== --- head/lib/libc/powerpc/sys/setlogin.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc/sys/setlogin.S Fri Jan 14 11:33:40 2011 (r217398) @@ -47,3 +47,5 @@ SYSCALL(setlogin) stw %r5,CNAME(_logname_valid)@l(%r4) #endif blr + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc64/gen/_ctx_start.S ============================================================================== --- head/lib/libc/powerpc64/gen/_ctx_start.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc64/gen/_ctx_start.S Fri Jan 14 11:33:40 2011 (r217398) @@ -45,3 +45,5 @@ */ nop bl PIC_PLT(CNAME(abort)) /* abort */ + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc64/gen/_setjmp.S ============================================================================== --- head/lib/libc/powerpc64/gen/_setjmp.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc64/gen/_setjmp.S Fri Jan 14 11:33:40 2011 (r217398) @@ -114,3 +114,5 @@ ENTRY(_longjmp) bnelr li %r3,1 blr + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc64/gen/fabs.S ============================================================================== --- head/lib/libc/powerpc64/gen/fabs.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc64/gen/fabs.S Fri Jan 14 11:33:40 2011 (r217398) @@ -33,3 +33,5 @@ __FBSDID("$FreeBSD$"); ENTRY(fabs) fabs %f1,%f1 blr + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc64/gen/setjmp.S ============================================================================== --- head/lib/libc/powerpc64/gen/setjmp.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc64/gen/setjmp.S Fri Jan 14 11:33:40 2011 (r217398) @@ -137,3 +137,4 @@ ENTRY(__longjmp) li %r3,1 blr + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc64/gen/sigsetjmp.S ============================================================================== --- head/lib/libc/powerpc64/gen/sigsetjmp.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc64/gen/sigsetjmp.S Fri Jan 14 11:33:40 2011 (r217398) @@ -142,3 +142,5 @@ ENTRY(siglongjmp) bnelr li %r3,1 blr + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc64/sys/brk.S ============================================================================== --- head/lib/libc/powerpc64/sys/brk.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc64/sys/brk.S Fri Jan 14 11:33:40 2011 (r217398) @@ -69,3 +69,5 @@ ENTRY(brk) ld %r0,16(%r1) mtlr %r0 blr + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc64/sys/cerror.S ============================================================================== --- head/lib/libc/powerpc64/sys/cerror.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc64/sys/cerror.S Fri Jan 14 11:33:40 2011 (r217398) @@ -57,4 +57,4 @@ ENTRY(HIDENAME(cerror)) li %r4,-1 blr - + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc64/sys/exect.S ============================================================================== --- head/lib/libc/powerpc64/sys/exect.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc64/sys/exect.S Fri Jan 14 11:33:40 2011 (r217398) @@ -45,3 +45,5 @@ ENTRY(exect) ld %r0,16(%r1) mtlr %r0 blr + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc64/sys/pipe.S ============================================================================== --- head/lib/libc/powerpc64/sys/pipe.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc64/sys/pipe.S Fri Jan 14 11:33:40 2011 (r217398) @@ -49,3 +49,5 @@ ENTRY(pipe) ld %r0,16(%r1) mtlr %r0 blr + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc64/sys/ptrace.S ============================================================================== --- head/lib/libc/powerpc64/sys/ptrace.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc64/sys/ptrace.S Fri Jan 14 11:33:40 2011 (r217398) @@ -63,3 +63,5 @@ ENTRY(ptrace) ld %r0,16(%r1) mtlr %r0 blr + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc64/sys/sbrk.S ============================================================================== --- head/lib/libc/powerpc64/sys/sbrk.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc64/sys/sbrk.S Fri Jan 14 11:33:40 2011 (r217398) @@ -64,3 +64,5 @@ ENTRY(sbrk) ld %r0,16(%r1) mtlr %r0 blr + + .section .note.GNU-stack,"",%progbits Modified: head/lib/libc/powerpc64/sys/setlogin.S ============================================================================== --- head/lib/libc/powerpc64/sys/setlogin.S Fri Jan 14 11:32:31 2011 (r217397) +++ head/lib/libc/powerpc64/sys/setlogin.S Fri Jan 14 11:33:40 2011 (r217398) @@ -37,3 +37,5 @@ SYSCALL(setlogin) li %r5,0 stw %r5,CNAME(_logname_valid)@toc@l(%r4) blr + + .section .note.GNU-stack,"",%progbits