[llvm-bugs] [Bug 43567] New: [IA] .ascii directive rejects hex escape codes
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 4 12:10:21 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43567
Bug ID: 43567
Summary: [IA] .ascii directive rejects hex escape codes
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: ndesaulniers at google.com
CC: caij2003 at gmail.com, kristof.beyls at arm.com,
llozano at chromium.org, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk,
srhines at google.com
$ 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).
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191004/ea6b2df1/attachment.html>
More information about the llvm-bugs
mailing list