Closed 0x28 closed 2 years ago
Hi, thanks for opening an issue on this, interesting..
Searching for note gnu stack, I found the following: https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
The interesting part is the section "How to fix the stack (in practice)".
TL;DR we should add the following at the end of all assembly files:
section .note.GNU-stack noalloc noexec nowrite progbits
Could you verify that this solves the problem?
That would be a solution. I tried it with several exercises and it works flawlessly every time.
Cool, thanks! If you'd like to make a PR, I'd be happy to review it. Otherwise I'll try to fix this when I find some time.
Hi, I have the following problem since I upgraded to binutils 2.38:
This is happening for every exercise not just for matching-brackets. Adding
-Wl,--no-warn-execstack
to theALL_LDFLAGS
in the Makefile solves this problem for now. Judging by the deprecation warning this won't be a long term solution.