This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 04/17 v5] Mark all machinery needed in early static-link init as -fno-stack-protector.


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]