cancel
Showing results for 
Search instead for 
Did you mean: 

Please change GCC stack canary to be weak

DreamOnDirac
Associate III

Hi

 

Could you please change the library implementations so that 

 

void __stack_chk_fail(void)

and

unsigned long __stack_chk_guard

are defined as weak?

I have tested it with GCC 11.3.rel1 and 12.3.rel1 and on both i get "multiple definitions of __stack_chk_fail

Right now i cant have my own implementations which makes it less useful.

 

Have a look at this post.

https://mcuoneclipse.com/2019/09/28/stack-canaries-with-gcc-checking-for-stack-overflow-at-runtime/ 

 

Best regards

Martin

 

1 REPLY 1
DreamOnDirac
Associate III

Can this get any attention?