aboutsummaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
authorVictor Do Nascimento <Victor.DoNascimento@arm.com>2022-08-03 11:49:19 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-08-03 11:49:19 +0100
commit250db3398da6774290a75e099a7beaa4c940f079 (patch)
treef53e8ba32a422081a4f37ca256e7043ef06f5670 /string
parent3f5c5bc532c2d3781e8b080dfd1ec712a3978e8e (diff)
downloadarm-optimized-routines-250db3398da6774290a75e099a7beaa4c940f079.tar.gz
string: arm: Augument unwind information for PAC instructions
Add the `.cfi_register 143, 12' directive immediately after pac instruction is emitted. Ensures unwind info consumers know immediately that if they need the PAC for the function, they can find it in ip register.
Diffstat (limited to 'string')
-rw-r--r--string/arm/strlen-armv6t2.S1
-rw-r--r--string/pacbti.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/string/arm/strlen-armv6t2.S b/string/arm/strlen-armv6t2.S
index e30ddd7..2601d03 100644
--- a/string/arm/strlen-armv6t2.S
+++ b/string/arm/strlen-armv6t2.S
@@ -50,6 +50,7 @@ ENTRY (__strlen_armv6t2)
#else
pac ip, lr, sp
#endif /* __ARM_FEATURE_BTI_DEFAULT */
+ .cfi_register 143, 12
push {r4, r5, ip}
.save {r4, r5, ra_auth_code}
.cfi_def_cfa_offset 12
diff --git a/string/pacbti.h b/string/pacbti.h
index 50d276a..9162b27 100644
--- a/string/pacbti.h
+++ b/string/pacbti.h
@@ -20,6 +20,7 @@
#else
pac ip, lr, sp
#endif /* __ARM_FEATURE_BTI_DEFAULT */
+ .cfi_register 143, 12
str ip, [sp, #-4]!
.save {ra_auth_code}
.cfi_def_cfa_offset 4