Skip to content

Issue GNU-stack section on Redox targets

Andrey Turkin requested to merge andrey.turkin/gcc:redox-13.2.0 into redox-13.2.0

Rust does, and the mismatch causes some warnings during link time. There was a suggestion to disable the warning, but I think it is better to let gcc signal linker whether executable stacks are needed so it can embed that information in the final binary in a form of GNU_STACK program header (even if Redox loader won't use that information). Fixes redox#1569 (closed)

Additionally, while investigating the above issue, I noticed there are two sets of crti.o/crtn.o files - one provided by relibc and one provided by gcc itself. Since platform/relibc provides those, I think it is best to mimic Linux/BSDs setup and disable "generic" gcc implementation in favor of libc.

I've done a full source rebuild of prefix and Redox on all 4 platforms using this version of gcc without any issues.

Merge request reports