From 8ffb81ed62bfb8466b2865c8ebd16c406d608551 Mon Sep 17 00:00:00 2001 From: kib Date: Fri, 14 Jan 2011 11:34:58 +0000 Subject: Mark csu on PowerPC as not requiring executable stack. Reviewed and tested by: nwhitehorn --- lib/csu/powerpc/crti.S | 2 ++ lib/csu/powerpc/crtn.S | 2 ++ lib/csu/powerpc64/crti.S | 2 ++ lib/csu/powerpc64/crtn.S | 2 ++ 4 files changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/csu/powerpc/crti.S b/lib/csu/powerpc/crti.S index 544bfa9..da83d1d 100644 --- a/lib/csu/powerpc/crti.S +++ b/lib/csu/powerpc/crti.S @@ -47,3 +47,5 @@ _fini: stw 31,12(1) stw 0,20(1) mr 31,1 + + .section .note.GNU-stack,"",%progbits diff --git a/lib/csu/powerpc/crtn.S b/lib/csu/powerpc/crtn.S index d3baa70..7430118 100644 --- a/lib/csu/powerpc/crtn.S +++ b/lib/csu/powerpc/crtn.S @@ -42,3 +42,5 @@ __FBSDID("$FreeBSD$"); lwz 31,-4(11) mr 1,11 blr + + .section .note.GNU-stack,"",%progbits diff --git a/lib/csu/powerpc64/crti.S b/lib/csu/powerpc64/crti.S index edca7ba..16a22c2 100644 --- a/lib/csu/powerpc64/crti.S +++ b/lib/csu/powerpc64/crti.S @@ -59,3 +59,5 @@ _fini: stdu 1,-48(1) mflr 0 std 0,64(1) + + .section .note.GNU-stack,"",%progbits diff --git a/lib/csu/powerpc64/crtn.S b/lib/csu/powerpc64/crtn.S index c62f913..39f21ae 100644 --- a/lib/csu/powerpc64/crtn.S +++ b/lib/csu/powerpc64/crtn.S @@ -38,3 +38,5 @@ __FBSDID("$FreeBSD$"); ld 0,16(%r1) mtlr 0 blr + + .section .note.GNU-stack,"",%progbits -- cgit v1.1