From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 47CCC3840C24; Mon, 22 Jun 2020 15:30:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47CCC3840C24 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 15:30:19 +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 15:30:19 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26151 --- Comment #1 from Carlos O'Donell --- Other issues to consider at the same time: (1) Kernel objects. - In Solaris these have special markup to avoid reading them as-if they were plain ET_REL objects. (2) dwz multi files are also ET_REL. One of the proposals for DWARFv5 is Split DWARF Objects (DWO) which is alre= ady implemented in some parts of the GNU toolchain. https://gcc.gnu.org/wiki/DebugFission http://dwarfstd.org/ShowIssue.php?issue=3D130313.4 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 toget= her in a .dwp file for use with debuggers. --- In the case of (1) it's a distinct issue that needs a new markup. Solaris u= ses 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 t= ype to say: exec, kmod, reloc, shared, pie, and static. That means you don't ha= ve to guess. --=20 You are receiving this mail because: You are on the CC list for the bug.=