https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103470
Bug ID: 103470 Summary: [10, 11, 12] GNU-stack section not emitted on MIPS hard-float targets with MUSL Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: lipnitsk at gmail dot com Target Milestone: --- MUSL follow-up to https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=54b3d52c3cca836c7c4c08cc9c02eda6c096372a This change should be back-ported (easy cherry-pick) to releases that contain 54b3d52c3cca836c7c4c08cc9c02eda6c096372a Proposed patch and discussion: https://gcc.gnu.org/pipermail/gcc-patches/2021-November/584553.html >From email thread: musl only uses PT_GNU_STACK to set default thread stack size and has no executable stack support[0], so there is no reason not to emit the .note.GNU-stack section on musl builds. [0]: https://lore.kernel.org/all/20190423192534.gn23...@brightrain.aerifal.cx/T/#u