From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 936A23851C1B; Tue, 16 Mar 2021 10:36:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 936A23851C1B From: "mliska at suse dot cz" To: dwz@sourceware.org Subject: [Bug default/27588] dwz: libxul.so: loclistptr attribute, yet no .debug_loc section Date: Tue, 16 Mar 2021 10:36:01 +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: mliska at suse dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody 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: 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: Tue, 16 Mar 2021 10:36:01 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27588 --- Comment #2 from Martin Liska --- All right, so it's likely nasm issue, there's reduced test-case: $ cat cdef.asm %define ARCH_X86_64 1 %ifndef public_prefix %endif %define WIN64 0 %if WIN64 ; Windows x64 ;=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D %if vzeroupper_required %endif %endif %macro BRANCH_INSTR 0-* %endmacro %if ARCH_X86_64 %macro DUP4 1-* %endmacro ret %endif ; ARCH_X86_64 $ cat a.c int main(int argc, char **argv) { return 0; } $ nasm -o cdef.o -f elf64 -F dwarf cdef.asm && gcc a.c -O2 -g -shared cdef.= o -o x.so && dwz x.so Apparently, cdef.o contains the section you're seeking for: $ readelf -SW cdef.o | grep debug_loc [11] .debug_loc PROGBITS 0000000000000000 0005c0 000000 00= =20=20=20=20=20 0 0 1 but the final x.so is somehow corrupted it seems: $ readelf -w x.so >/dev/null readelf: Warning: Bogus end-of-siblings marker detected at offset e6 in .debug_info section readelf: Warning: Bogus end-of-siblings marker detected at offset e7 in .debug_info section readelf: Warning: Bogus end-of-siblings marker detected at offset e8 in .debug_info section readelf: Warning: Further warnings about bogus end-of-sibling markers suppressed --=20 You are receiving this mail because: You are on the CC list for the bug.=