|
QNX 7.0 + qcc 5.4.0: Binary fails to execute when compiled with -Wl,-z,noexecstack
|
08/25/2025 6:09 AM
post122678
|
QNX 7.0 + qcc 5.4.0: Binary fails to execute when compiled with -Wl,-z,noexecstack
Hi everyone,
I'm currently working with QNX 7.0 and using qcc version 5.4.0 as the compiler. I encountered an issue where a binary
compiled with the following linker flag:
-Wl,-z,noexecstack
fails to execute on the target system. When I remove this flag, the binary runs as expected.
I’ve verified that the build completes without errors, and the resulting binary appears valid (e.g., correct
architecture, permissions, etc.). However, execution simply fails without any meaningful runtime error message.
Has anyone experienced similar behavior with -z noexecstack on QNX 7.0?
Is this a known limitation or incompatibility with the QNX toolchain or runtime?
Any insights, workarounds, or documentation references would be greatly appreciated.
Thanks in advance!
|
|
|