From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E84493851C0D; Mon, 22 Jun 2020 20:53:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E84493851C0D From: "carlos at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/26151] Add ET_* markers for debug files, and enhance ldd (ld.so) to use them. Date: Mon, 22 Jun 2020 20:53:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.32 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: carlos at redhat dot com X-Bugzilla-Status: NEW 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: Message-ID: In-Reply-To: References: 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: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2020 20:53:50 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26151 --- Comment #4 from Carlos O'Donell --- (In reply to H.J. Lu from comment #3) > (In reply to Carlos O'Donell from comment #1) > > In the case of (1) it's a distinct issue that needs a new markup. Solar= is > > uses DF_1_KMOD to mark kernel modules. This means that with > > https://docs.oracle.com/cd/E88353_01/html/E37839/ld-1.html you can use = -z > > type to say: exec, kmod, reloc, shared, pie, and static. That means you > > don't have to guess. >=20 > I prefer DF_1_XXX over ET_XXX. It doesn't make sense to me. The use of DF_1_* requires PT_DYANMIC/.dynamic and DT_FLAGS_1. The PT_DYNAMIC/.dynamic is not present in debuginfo objects, it is stripped= and NOBITS and should come from the original executable. This makes it less than useful to use as a way to self-identify the files. Likewise kernel modules have no PT_DYNAMIC/.dyanmic because they are ET_REL= . So there is additional work to pursue a solution based on DF_1_* markup. The DF_1_* markup is also semantically about marking up dynamic objects, and debug info is not a dynamic object, it would make more sense to add new fundamental ELF types since that is what they are. Do you have any specific objection to a new ET_* markup? --=20 You are receiving this mail because: You are on the CC list for the bug.=