From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9D2FA3844035; Fri, 26 Feb 2021 23:26:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D2FA3844035 From: "mark at klomp dot org" To: dwz@sourceware.org Subject: [Bug default/27440] [dwz, dwarf5] Add --dwarf-5 flag to generate .debug_sup, ref_sup and strp_sup Date: Fri, 26 Feb 2021 23:26:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2021 23:26:28 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27440 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Mark Wielaard --- commit 4e55da9f7700dda5936c7a486651674dbc782a7e Author: Jakub Jelinek Date: Sat Feb 20 10:47:53 2021 +0100 PR27440 - add --dwarf-5 support This adds --dwarf-5 support, so that dwz can emit standard DWARF 5 Supplementary object files with .debug_sup section and debug info refer= ring to those with .debug_sup section instead of .gnu.debugaltlink and stand= ard DWARF 5 DW_FORM_*sup instead of the DW_FORM_GNU_*alt forms. * dwz.1: Document --dwarf-5 and -5 options. * dwz.c (enum debug_section_kind): Add DEBUG_SUP. (debug_sections): Add .debug_sup section entry. (multifile_name, multifile_relative): Adjust comment. (dwarf_5): New variable. (note_strp_offset2): Adjust function comment. If dwarf_5, retu= rn DW_FORM_strp_sup instead of DW_FORM_GNU_strp_alt. (macro_eq, read_macro, optimize_write_macro, handle_macro): Use standard DWARF 5 DW_MACRO_* names instead of their DW_MACRO_GNU= _* aliases. (write_macro): Likewise. Handle DW_FORM_strp_sup. (build_abbrevs_for_die): If dwarf_5, use DW_FORM_ref_sup4 inste= ad of DW_FORM_GNU_ref_alt. (write_unit_die): Handle DW_FORM_strp_sup. (write_die): Handle DW_FORM_ref_sup4 and DW_FORM_strp_sup. (read_dwarf): Fail if .debug_sup section is present, unless rd_multifile in dwarf_5 mode. (dwz): Write .debug_sup section instead of .gnu.debugaltlink if dwarf_5. (optimize_multifile): Write .debug_sup section instead of .note.gnu.build-id. (dwz_options): Add --dwarf-5 and -5 options. (dwz_multi_file_options_help): Mention .debug_sup section in -M description. Add --dwarf-5 description. (main): Handle --dwarf-5 and -5 options. --=20 You are receiving this mail because: You are on the CC list for the bug.=