Skip to main content
Associate III
January 19, 2024
Question

Please change GCC stack canary to be weak

  • January 19, 2024
  • 1 reply
  • 1293 views

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

 

This topic has been closed for replies.

1 reply

Associate III
June 26, 2024

Can this get any attention?