From 33e6b543c75f96825cf581c5dc47c316662dcb26 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Fri, 14 Jan 2011 11:34:58 +0000 Subject: [PATCH] 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(+) diff --git a/lib/csu/powerpc/crti.S b/lib/csu/powerpc/crti.S index 544bfa9ae569..da83d1d97182 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 d3baa70876bd..74301181ffa1 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 edca7ba77b78..16a22c2d9dc7 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 c62f913d9296..39f21aee40d9 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