]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Move non-executable stack assembly code to end of file
authorRuss Allbery <rra@stanford.edu>
Mon, 22 Mar 2010 19:42:48 +0000 (12:42 -0700)
committerRuss Allbery <rra@debian.org>
Mon, 22 Mar 2010 22:39:50 +0000 (15:39 -0700)
commit87d868184fcd25b035868714cb242e10293fb0dd
tree2cf8a4d58e414eb43486c03dbc6331145a3123b8
parent8c879e7fd784e0f19659352b84daafb3c9faffaf
Move non-executable stack assembly code to end of file

The non-executable stack annotation used for Linux works by adding
an additional section to the generated object.  The annotation added
in 9bfd03d723a9cf17673f40513a7adde1d503bcbc was added to the beginning
of each assembly file.  This caused build failures on Linux s390
because the remainder of the assembly code was then put in that
section, which was discarded during linking.

Add the annotation to the end of each assembly file instead, following
the instructions at:

    http://www.gentoo.org/proj/en/hardened/gnu-stack.xml

Change-Id: I5bd2d8d0ac31932b59757dcec0a942c459d61cac
Reviewed-on: http://gerrit.openafs.org/1615
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 9dbe48ac2d14742d2acefb9cb4138b810a1a128e)
Reviewed-on: http://gerrit.openafs.org/1618
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit eb799d07e7dd37f379a4e84df5eb3397b16f5a41)
src/lwp/process.amd64.s
src/lwp/process.i386.s
src/lwp/process.s
src/lwp/process.s390.s
src/lwp/process.s390x.s
src/sys/syscall.s