<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - -gdwarf-5 and binutils 2.30 compat"
href="https://bugs.llvm.org/show_bug.cgi?id=45040">45040</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-gdwarf-5 and binutils 2.30 compat
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>DebugInfo
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ndesaulniers@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>jdevlieghere@apple.com, keith.walker@arm.com, llvm-bugs@lists.llvm.org, paul_robinson@playstation.sony.com, srhines@google.com
</td>
</tr>
<tr>
<th>Blocks</th>
<td>4068
</td>
</tr></table>
<p>
<div>
<pre>I'm trying to use `-gdwarf-5 -no-integrated-as` to enable dwarf-5 support in
the Linux kernel, and running into issues with my assembler, GNU as 2.30.
do_mounts.s:19: Error: junk at end of line, first unrecognized character is `m'
do_mounts.s:19: Error: file number less than one
Looks like the following line:
.file 0 "/home/nick/linux/init/do_mounts.c" md5
0x62e8a195aa9d4d8b466f84b7775ea4cd
So it looks like a file index starting from 0 is problematic, AND the md5
checksums are problematic.
Are there flags to disable these? I know I should just update my binutils, but
it would be nice to still support a few releases of GNU binutils, if possible.
<a href="https://sourceware.org/binutils/docs/as/File.html#File">https://sourceware.org/binutils/docs/as/File.html#File</a> for example states:
`The fileno operand should be a unique positive integer`.
The checksums don't seem documented in binutils docs (at least for the .file
directive), and I haven't yet looked at their source or newer versions to see
if this is supported.</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_CONFIRMED "
title="CONFIRMED - [Meta] Compiling the Linux kernel with clang"
href="https://bugs.llvm.org/show_bug.cgi?id=4068">Bug 4068</a>] [Meta] Compiling the Linux kernel with clang
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>