Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2011 11:33:40 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r217398 - in head/lib/libc: powerpc/gen powerpc/sys powerpc64/gen powerpc64/sys
Message-ID:  <201101141133.p0EBXePS086538@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101141133.p0EBXePS086538>