Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 312335 | Differences between
and this patch

Collapse All | Expand All

(-)gcc-x86_64-has-stack-protector.sh (-1 / +1 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -c -O0 -mcmodel=kernel -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
3
echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -c -O0 -mcmodel=kernel -fno-pic -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
4
if [ "$?" -eq "0" ] ; then
4
if [ "$?" -eq "0" ] ; then
5
	echo y
5
	echo y
6
else
6
else

Return to bug 312335