Skip to content

Disable warning caused by missing stack protection markings

mattmadeofpasta requested to merge mattmadeofpasta/dash:no-warn-execstack into redox

The configure test currently fails to detect the C runtime functions:

configure:5197: result: no
configure:5203: checking for strtod
configure:5203: x86_64-unknown-redox-gcc -o conftest -I/foo/redox.fix-dash/cookbook/recipes/dash/target/x86_64-unknown-redox/sysroot/include -I/builds/redox
/redox-builder-shell/redox.fix-dash/cookbook/recipes/dash/target/x86_64-unknown-redox/sysroot/include -static -Wl,--fatal-warnings conftest.c  >&5
/foo/redox.fix-dash/prefix/x86_64-unknown-redox/relibc-install/bin/../lib/gcc/x86_64-unknown-redox/13.2.0/../../../../x86_64-unknown-redox/bin/ld: warning: 
/foo/redox.fix-dash/prefix/x86_64-unknown-redox/relibc-install/bin/../lib/gcc/x86_64-unknown-redox/13.2.0/crtn.o: missing .note.GNU-stack section implies executable stack
/foo/redox.fix-dash/prefix/x86_64-unknown-redox/relibc-install/bin/../lib/gcc/x86_64-unknown-redox/13.2.0/../../../../x86_64-unknown-redox/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

This is because there is no .note.GNU-stack section section on the C runtime object files, and it causes a stack protection warning.

We ignore this warning.

Edited by mattmadeofpasta

Merge request reports