From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3DCB93858C2F; Tue, 16 Aug 2022 21:23:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DCB93858C2F From: "jpalus at fastmail dot com" To: elfutils-devel@sourceware.org Subject: [Bug tools/29498] New: Is it expected that eu-strip strips .note.GNU-stack Date: Tue, 16 Aug 2022 21:23:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: tools X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jpalus at fastmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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 cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2022 21:23:28 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29498 Bug ID: 29498 Summary: Is it expected that eu-strip strips .note.GNU-stack Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: unassigned at sourceware dot org Reporter: jpalus at fastmail dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- Accidentally we've started to strip crt*.o files produced by glibc and were surprised by the fact that eu-strip gets rid of .note.GNU-stack section resulting in incorrect linking. $ gcc -c test.c -o test.o $ readelf -S test.o|grep GNU-stack [ 5] .note.GNU-stack PROGBITS 0000000000000000 00000074 $ eu-strip test.o $ readelf -S test.o|grep GNU-stack (empty) I see following comment in strip.c: > - special sections named ".comment" and ".note" are kept https://sourceware.org/git/?p=3Delfutils.git;a=3Dblob;f=3Dsrc/strip.c;h=3D4= 52b12796dd3b7ff3a46d13a2bfb9aa0f5c93ac9;hb=3DHEAD#l1361 The question is whether observed behavior is expected or rather .note.GNU-s= tack should be kept? --=20 You are receiving this mail because: You are on the CC list for the bug.=