Hi Alexander,
During development of a project I noticed that linking a object created from assembler to another object created from C code results in a binary with executable stack.
Blowing my own trumpet slightly, I wrote a blog about this kind of problem which might be of help: https://www.redhat.com/en/blog/linkers-warnings-about-executable-stacks-and-segments Cheers Nick