Revision bc584c5107bfd97e2aa41c798e3b213bcdd4eae7 authored by Linus Torvalds on 22 August 2010, 17:08:52 UTC, committed by Linus Torvalds on 22 August 2010, 17:08:52 UTC
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6:
  slab: fix object alignment
  slub: add missing __percpu markup in mm/slub_def.h
2 parent s a28e085 + 1ab335d
Raw File
gcc-x86_64-has-stack-protector.sh
#!/bin/sh

echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -c -O0 -mcmodel=kernel -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
if [ "$?" -eq "0" ] ; then
	echo y
else
	echo n
fi
back to top