diff options
author | Fangrui Song <i@maskray.me> | 2025-05-09 19:00:17 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-05-09 19:00:17 -0700 |
commit | 8893d407a68ece98d6911e3f186305dbc43ee90e (patch) | |
tree | 3301b7a4ec90ce925312e692a33f1084db8da3f9 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 6a1d3ea57d344b96be352ae3203ed621359445b3 (diff) | |
download | llvm-8893d407a68ece98d6911e3f186305dbc43ee90e.zip llvm-8893d407a68ece98d6911e3f186305dbc43ee90e.tar.gz llvm-8893d407a68ece98d6911e3f186305dbc43ee90e.tar.bz2 |
MC: Support quoted symbol names
gas has supported " quoted symbols since 2015.
Both \ and " need to be escaped.
https://sourceware.org/pipermail/binutils/2015-August/090003.html
We don't unescape \\ or \" in assembly strings, leading to clang -c
--save-temps vs clang -c difference for the following C code:
```
int x asm("a\"\\b");
```
Fix #138390
MC/COFF/safeseh.h looks incorrect. \01 in `.safeseh "\01foo"` is not a
correct escape sequence. Change it to \\
Pull Request: https://github.com/llvm/llvm-project/pull/138817
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions