executable stack again
The issue of executable stack is showing up again in Gentoo. https://bugs.gentoo.org/795819 I think it reappeared because an alternative to libtool is used that may be missing some of the flags added by configure (possibly on purpose). In any case, I think I have a better grasp on how to fix things at generation now. That lead me to a bunch of somewhat related issues:
- autogen.py is a python2 script. Not a big deal, it just need braces added in the print statements.
- The README in the x86_64 is incorrect as far as I can see
- mulredc1.asm is not generated by autogen.py, if you do it misses some windows bits compared to the one present. And I can see it is present in the repo unlike the other ones.
- It doesn't explain how mulredc1_2.asm to mulredc1_20.asm are generated
I can see how they are generated by the Makefile but the README and autogen.py should go, or at least the README should be updated.
For the issue at hand proper, I can fix mulredc.m4 and mulredc1.m4 so generated files have the correct assembly code as described in https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart