Skip to content

nasm produced ELF files lack a .debug_loc section #187

@apteryks

Description

@apteryks

Hello,

This has been discovered in 2021 when running dwz, the debug info compressor, see: https://sourceware.org/bugzilla/show_bug.cgi?id=27588.

When attempting to process a NASM-produced ELF binary, dwz reports errors such as in the following case (ffmpeg makes use of nasm):

/tmp/guix-build-ffmpeg-8.0.drv-0/install/lib$ find -type f -executable -exec dwz {} +
dwz: ./libswresample.so.6.1.100: loclistptr attribute, yet no .debug_loc section
dwz: ./libswscale.so.9.1.100: loclistptr attribute, yet no .debug_loc section
dwz: ./libavutil.so.60.8.100: loclistptr attribute, yet no .debug_loc section
dwz: ./libavfilter.so.11.4.100: loclistptr attribute, yet no .debug_loc section
dwz: ./libavcodec.so.62.11.100: loclistptr attribute, yet no .debug_loc section

A development option was added which can be used as a workaround for now ("--devel-skip-producer=NASM"), but it'd be nicer if NASM could produce correct ELF files :-).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions