A new stack protector option?

Jakub Jelinek jakub@redhat.com
Fri Dec 2 08:55:00 GMT 2011


On Tue, Nov 29, 2011 at 03:53:50PM -0800, Han Shen(沈涵) wrote:
> Hi, I propose to add to gcc a new option regarding stack protector -
> "-fstack-protector-strong", in addition to current gcc's
> "-fstack-protector-all", which protects ALL functions, and
> "-fstack-protector", which protects functions that have a big
> (signed/unsigned) char array or have alloca called.

Isn't -fstack-protector --param ssp-buffer-size=4 (or =2) enough for you?

	Jakub



More information about the Gcc mailing list