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: unassignedclangb...@nondot.org
          Reporter: ndesaulni...@google.com
                CC: caij2...@gmail.com, kristof.be...@arm.com,
                    lloz...@chromium.org, llvm-bugs@lists.llvm.org,
                    neeil...@live.com, richard-l...@metafoo.co.uk,
                    srhi...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to