[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/25611] New: [DWARF-5] support for checksums in .file directives

From: ndesaulniers at google dot com
Subject: [Bug gas/25611] New: [DWARF-5] support for checksums in .file directives
Date: Fri, 28 Feb 2020 21:47:29 +0000


            Bug ID: 25611
           Summary: [DWARF-5] support for checksums in .file directives
           Product: binutils
           Version: 2.35 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: ndesaulniers at google dot com
  Target Milestone: ---

I was playing around trying to enable -gdwarf-5 in the Linux kernel, and hit an
issue where it looks like clang is emitting .file directives like:

.file 1 "/home/nick/linux/init/do_mounts.c" md5

with GAS producing errors like:
do_mounts.s:19: Error: junk at end of line, first unrecognized character is `m'

A quick grep through the DWARF-5 spec [0] doesn't mention anything about
assembly directives.  The docs on .file directives also doesn't mention this.

I assume this is maybe an extension that Clang implemented? IIUC, it's used by
debuggers to tell when/if a file has been modified.

Is this something that can be implemented in GNU as? I'm happy to also pursue a
command line flag in Clang to disable the emission of these checksums.

See also [2].

[0] http://www.dwarfstd.org/doc/DWARF5.pdf
[1] https://sourceware.org/binutils/docs/as/File.html#File
[2] https://bugs.llvm.org/show_bug.cgi?id=45040

You are receiving this mail because:
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]