[PATCH] Add .note.GNU-stack to suppress executable stack in x86_32 assembly.

Kp kp at valhallalegends.com
Sat May 10 19:30:25 CEST 2008


Hello,

The silc 1.1 branch contains handwritten assembly in 
lib/silccrypt/aes_x86.asm to provide an optimized version of AES for 
IA32 CPUs.  However, this file does not include a .note.GNU-stack 
marker.  The GNU toolchain uses the presence of the .note.GNU-stack 
marker to decide whether a file requires an executable stack.  If no 
such marker is present, it assumes that an executable stack is required. 
  This patch adds a marker to inform the toolchain that the stack should 
be non-executable.  This patch is based on silc.1.1.branch.  I have run 
silc for many weeks with the executable stack disabled and have seen no 
problems.

The attached patch should be suitable for direct consumption with git am.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Add-.note.GNU-stack-to-suppress-executable-stack-in.patch
Url: http://lists.silcnet.org/pipermail/silc-devel/attachments/20080510/e9739ec0/0001-Add-.note.GNU-stack-to-suppress-executable-stack-in.ksh


More information about the silc-devel mailing list