On 3/13/07, Eric Christopher <echristo@apple.com> wrote:
Here's a couple of quick tests to ensure that -fstack-protector is
working. I've got them enabled for native only.
Tested on x86_64-linux-gnu, x86-darwin, x86_64-darwin, mipsisa64-elf
(to make sure they didn't run).
These testcase fails if libc does not have ssp support and libssp is
not installed already:
/usr/bin/ld: cannot find -lssp_nonshared
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
/usr/bin/ld: cannot find -lssp_nonshared
collect2: ld returned 1 exit status
FAIL: gcc.dg/ssp-1.c (test for excess errors)
Excess errors:
/usr/bin/ld: cannot find -lssp_nonshared