On Wed, 25 Jul 2018, Vineet Gupta wrote: > But given the dso code has nested function, a well equipped gcc when generating > trampoline code would also generate the GNU_STACK segment for the dso > automatically, without need to force the same via the linker flags as is done in > the Makefile currently. Only when a port's gcc doesn't support this (ARC gcc > didn't until recently), should we need ld assist, and this could be detected using > a configure test - No ? The test should achieve the executable stack markings independent of whether nested functions require them on that architecture (for example, it should still have the markings on architectures with function descriptors). -- Joseph S. Myers joseph at codesourcery.com