]> 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)
committerDerrick Brashear <shadow@dementia.org>
Sun, 23 May 2010 00:14:13 +0000 (20:14 -0400)
commitbc4598b155f85a11f56f4d237c5aa0954cb91e1f
tree062a8158d82603e8e9194566d29846cf61c55977
parent495fda424418c98184bd643df9f262b709601fab
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)
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