|
From: | i at maskray dot me |
Subject: | [Bug ld/29072] ld silently make the program stack area executable if nested function is used |
Date: | Thu, 21 Apr 2022 06:48:02 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=29072 Fangrui Song <i at maskray dot me> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |i at maskray dot me --- Comment #9 from Fangrui Song <i at maskray dot me> --- I think in 2022 we should consider this https://www.airs.com/blog/archives/518 > These days we could probably change the default: we could probably say that > if an object file does not have a .note.GNU-stack section, then it does not > require an executable stack. Only give an executable stack if -z execstack is specified. This is ld.lld's choice and (until one day ago mold's choice). Taking the address of a nested function is so rare that I am unsure having an on-demand state is useful. FWIW Clang doesn't supported GCC nested functions. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |