From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B1E9F3858004; Tue, 16 Mar 2021 10:49:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B1E9F3858004 From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/27588] dwz: libxul.so: loclistptr attribute, yet no .debug_loc section Date: Tue, 16 Mar 2021 10:49:59 +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: vries at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: NOTABUG X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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:49:59 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27588 Tom de Vries changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTABUG Status|UNCONFIRMED |RESOLVED --- Comment #4 from Tom de Vries --- (In reply to Martin Liska from comment #2) > All right, so it's likely nasm issue, there's reduced test-case: >=20 > $ 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 >=20 > $ cat a.c > int main(int argc, char **argv) > { > return 0; > } >=20 > $ nasm -o cdef.o -f elf64 -F dwarf cdef.asm && gcc a.c -O2 -g -shared cde= f.o > -o x.so && dwz x.so >=20 > Apparently, cdef.o contains the section you're seeking for: >=20 > $ readelf -SW cdef.o | grep debug_loc > [11] .debug_loc PROGBITS 0000000000000000 0005c0 000000 0= 0=20=20 > 0 0 1 >=20 Yes, the section is there, but empty, so indeed an asm issue. This ( https://bugzilla.nasm.us/show_bug.cgi?id=3D3392631 ) looks related. Marking this resolved-notabug. --=20 You are receiving this mail because: You are on the CC list for the bug.=