[PATCH 04/17 v5] Mark all machinery needed in early static-link init as -fno-stack-protector.
Nix
nix@esperi.org.uk
Sun Apr 10 11:27:00 GMT 2016
On 10 Apr 2016, Mike Frysinger outgrape:
> On 13 Mar 2016 15:16, Nix wrote:
>> We also finally introduce @libc_cv_ssp@ and @no-stack-protector@, both
>
> @no_stack_protector@
>
>> --- a/csu/Makefile
>> +++ b/csu/Makefile
>>
>> +CFLAGS-.o += $(no-stack-protector)
>> +CFLAGS-.og += $(no-stack-protector)
>> +CFLAGS-.op += $(no-stack-protector)
>> +CFLAGS-.os += $(no-stack-protector)
>
> is there a format you're trying to avoid ? *.oS ?
Not particularly. If CFLAGS on its own works, I could use that.
>> --- a/misc/Makefile
>> +++ b/misc/Makefile
>>
>> +# Called during static library initialization.
>> +CFLAGS-sbrk.o = $(no-stack-protector)
>> +CFLAGS-sbrk.op = $(no-stack-protector)
>> +CFLAGS-sbrk.og = $(no-stack-protector)
>> +CFLAGS-brk.o = $(no-stack-protector)
>> +CFLAGS-brk.op = $(no-stack-protector)
>> +CFLAGS-brk.og = $(no-stack-protector)
>
> same here
Now this is .os-avoidance. I assumed the mention of static library
initialization was sufficient, but I could add ', so turn it off for
non-.os' or something if you like.
--
NULL && (void)
More information about the Libc-alpha
mailing list