From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4F4B2385840B; Mon, 29 Nov 2021 18:47:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F4B2385840B From: "lipnitsk at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/103470] New: [10, 11, 12] GNU-stack section not emitted on MIPS hard-float targets with MUSL Date: Mon, 29 Nov 2021 18:47:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lipnitsk at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2021 18:47:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103470 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=3Dgcc.git;a=3Dcommit;h=3D54b3d52c3cca836c7c4c08c= c9c02eda6c096372a This change should be back-ported (easy cherry-pick) to releases that conta= in 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.GN23599@brightrain.aerifal.cx/T/= #u=