<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 - [IA] .ascii directive rejects hex escape codes"
href="https://bugs.llvm.org/show_bug.cgi?id=43567">43567</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[IA] .ascii directive rejects hex escape codes
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ndesaulniers@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>caij2003@gmail.com, kristof.beyls@arm.com, llozano@chromium.org, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk, srhines@google.com
</td>
</tr></table>
<p>
<div>
<pre>$ cat arm.s
.ascii "ARM\x64"
$ clang arm.s
arm.s:1:8: error: invalid escape sequence (unrecognized character) in '.ascii'
directive
.ascii "ARM\x64"
^
$ aarch64-linux-gnu-as arm.s
$ echo $?
0
It looks like the arm64 Linux kernel embeds a magic string in the kernel image.
It is not a null terminated C style string (hence .ascii not .asciz). \x64 is
a hexadecimal escape code (corresponds to 'd' in ASCII, but is meant to be a
cute joke I think).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>