Original diff: D71372
Related diff: D71784
D71784 shows that we cannot assume the stack is not executable across platforms. Refactor the test to use a variable from the .data section which should be guaranteed non-executable.
I would appreciate guidance regarding the var@GOTPCREL(%rip). Directly referencing var would not assemble on my darwin machine due to an error about absolute addressing, and I used this to workaround it. I'm not sure if it's even portable to other platforms?
@jankratochvil Would you be able to test this on a Fedora machine, please?
This should be 0x08, or you'll should push one more value to stack in asm_main.