Bk6.6Ch6.9 glibc `__stack_chk_guard' work around.

Chris Staub chris at beaker67.com
Wed Mar 31 13:46:59 PDT 2010

On 03/31/2010 04:22 PM, Chris Staub wrote:
> On 03/31/2010 04:06 PM, Szabolcs Gyalókay wrote:
>> Hi All,
>> OK, then libssp is not supposed to be linked, then why isn't somebody
>> asking the obvious question?
>> In the original post Pete wrote:
>>      It seems that libssp is suppose to be pulled in by
>>      the gcc option '-fstack-protector' so that '-lssp'
>>      shouldn't be necessary on the link line.
>> So libssp is included because of '-fstack-protector'. I assume
>> '-fstack-protector' is also not supposed to be there. Then why is it here:
>> gcc res_hconf.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline
>> -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes
>> -DIS_IN_nscd=1 -D_FORTIFY_SOURCE=2 -fpie -fstack-protector
>> I can only say for sure: I'm pasting instructions from the book, and I
>> did not put it there.
> I also see -fstack-protector on my Glibc build, but it doesn't try to
> pull in libssp. Perhaps that isn't the real problem.

Hmm, sorry I just noticed that my latest Glibc log is from an older 
version. Maybe I need to look at the current one again...

More information about the lfs-support mailing list