[PATCH] Avoid backtrace from __stack_chk_fail [BZ #12189]

H.J. Lu hjl.tools@gmail.com
Tue Jul 11 20:42:00 GMT 2017


On Tue, Jul 11, 2017 at 1:29 PM, Florian Weimer <fw@deneb.enyo.de> wrote:
> * H. J. Lu:
>
>> On Tue, Jul 11, 2017 at 12:39 PM, Florian Weimer <fw@deneb.enyo.de> wrote:
>>> * H. J. Lu:
>>>
>>>> +CFLAGS-tst-ssp-1.c = -fstack-protector
>>>
>>> This should be -fstack-protector-all, in case the the stack protector
>>> heuristics do not instrument a thirty-byte array.
>>
>> Does GCC 4.9 support  -fstack-protector-all?
>
> It's mentioned in
>
> <https://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html>
>
> so I assume it does.  (-fstack-protector-strong is the recent
> addition.)

Here is the patch.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Compile-tst-ssp-1.c-with-fstack-protector-all.patch
Type: text/x-patch
Size: 1365 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170711/9c6b9be6/attachment.bin>


More information about the Libc-alpha mailing list