aboutsummaryrefslogtreecommitdiff
path: root/libunwind
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-03-17 09:27:41 +0100
committerNikita Popov <npopov@redhat.com>2023-03-17 09:28:20 +0100
commit5d276380b0b45c3f02ef3c8614c3be95ce1bcb1e (patch)
tree0cc4d25e3d4e90566fc2700806edee015de111c7 /libunwind
parent4a2757d80f0af48e65d90e7eaf268f78bcfa997f (diff)
downloadllvm-5d276380b0b45c3f02ef3c8614c3be95ce1bcb1e.zip
llvm-5d276380b0b45c3f02ef3c8614c3be95ce1bcb1e.tar.gz
llvm-5d276380b0b45c3f02ef3c8614c3be95ce1bcb1e.tar.bz2
[libunwind][AArch64] Unbreak building with GNU assembler
GNU assembler mandates armv8.5-a for memtag instructions. Maybe we should remove this restriction in GNU assembler, but let's work around it for current GNU Binutils releases. Differential Revision: https://reviews.llvm.org/D146109
Diffstat (limited to 'libunwind')
-rw-r--r--libunwind/src/DwarfInstructions.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libunwind/src/DwarfInstructions.hpp b/libunwind/src/DwarfInstructions.hpp
index 27432be..9962c2f 100644
--- a/libunwind/src/DwarfInstructions.hpp
+++ b/libunwind/src/DwarfInstructions.hpp
@@ -224,7 +224,8 @@ int DwarfInstructions<A, R>::stepWithDwarf(A &addressSpace, pint_t pc,
p &= ~0xfULL;
// CFA is the bottom of the current stack frame.
for (; p < cfa; p += 16) {
- __asm__ __volatile__(".arch_extension memtag\n"
+ __asm__ __volatile__(".arch armv8.5-a\n"
+ ".arch_extension memtag\n"
"stg %[Ptr], [%[Ptr]]\n"
:
: [Ptr] "r"(p)