From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 74CD8388A823; Mon, 22 Jun 2020 20:29:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74CD8388A823 From: "hjl.tools at gmail 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:29:50 +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: hjl.tools at gmail 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: cc 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:29:50 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26151 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hjl.tools at gmail dot com --- Comment #3 from H.J. Lu --- (In reply to Carlos O'Donell from comment #1) > Other issues to consider at the same time: >=20 > (1) Kernel objects. > - In Solaris these have special markup to avoid reading them as-if they w= ere > plain ET_REL objects. >=20 > (2) dwz multi files are also ET_REL. >=20 > One of the proposals for DWARFv5 is Split DWARF Objects (DWO) which is > already implemented in some parts of the GNU toolchain. >=20 > https://gcc.gnu.org/wiki/DebugFission > http://dwarfstd.org/ShowIssue.php?issue=3D130313.4 >=20 > This would leave some parts of the DWARF info in the .dwo (ET_REL) file, = so > the linker doesn't have to process it. Later these .dwo would be packaged > together in a .dwp file for use with debuggers. >=20 > --- >=20 > In the case of (1) it's a distinct issue that needs a new markup. Solaris > 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. I prefer DF_1_XXX over ET_XXX. --=20 You are receiving this mail because: You are on the CC list for the bug.=