Removing nested function from elfxx-aarch64.c
Nick Clifton
nickc@redhat.com
Wed Mar 5 11:19:15 GMT 2025
Hi Matthieu,
> I didn't know that nested functions was a problem, I was treating them more or less as the lambdas in C++.
> I have some patches I need to update then :)
Heh. :-)
Basically there are two problems with nested functions (in C). The
first is that they are a GNU extension and not supported by all
compilers. The second is that they can lead to the creation of an
executable stack. This second problem usually only happens if you
take the address of a nested function, but there are some older
compilers where the stack was always used.
Cheers
Nick
More information about the Binutils
mailing list