[Bug default/27588] dwz: libxul.so: loclistptr attribute, yet no .debug_loc section
vries at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Tue Mar 16 10:49:59 GMT 2021
https://sourceware.org/bugzilla/show_bug.cgi?id=27588
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |NOTABUG
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Martin Liska from comment #2)
> 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 ;=================================================
> %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
> 0 0 1
>
Yes, the section is there, but empty, so indeed an asm issue.
This ( https://bugzilla.nasm.us/show_bug.cgi?id=3392631 ) looks related.
Marking this resolved-notabug.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Dwz
mailing list