aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-02-02 13:44:27 +1000
committerMichael Tokarev <mjt@tls.msk.ru>2024-02-09 10:44:49 +0300
commit3a970decfee1f82dcafce8b9e56bc1b382975f77 (patch)
tree29ee4cd1ed3ecd9bba636af59e7afdb40a649b59 /linux-user
parent8b7750c66f191ec830c2985dcc1382703b48a117 (diff)
downloadqemu-3a970decfee1f82dcafce8b9e56bc1b382975f77.zip
qemu-3a970decfee1f82dcafce8b9e56bc1b382975f77.tar.gz
qemu-3a970decfee1f82dcafce8b9e56bc1b382975f77.tar.bz2
linux-user/aarch64: Add padding before __kernel_rt_sigreturn
Without this padding, an unwind through the signal handler will pick up the unwind info for the preceding syscall. This fixes gcc's 30_threads/thread/native_handle/cancel.cc. Cc: qemu-stable@nongnu.org Fixes: ee95fae075c6 ("linux-user/aarch64: Add vdso") Resolves: https://linaro.atlassian.net/browse/GNU-974 Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240202034427.504686-1-richard.henderson@linaro.org> (cherry picked from commit 6400be014f80e4c2c246eb8be709ea3a96428233) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-user')
-rwxr-xr-xlinux-user/aarch64/vdso-be.sobin3216 -> 3224 bytes
-rwxr-xr-xlinux-user/aarch64/vdso-le.sobin3216 -> 3224 bytes
-rw-r--r--linux-user/aarch64/vdso.S4
3 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/aarch64/vdso-be.so b/linux-user/aarch64/vdso-be.so
index 6084f3d..808206a 100755
--- a/linux-user/aarch64/vdso-be.so
+++ b/linux-user/aarch64/vdso-be.so
Binary files differ
diff --git a/linux-user/aarch64/vdso-le.so b/linux-user/aarch64/vdso-le.so
index 947d534..941aaf2 100755
--- a/linux-user/aarch64/vdso-le.so
+++ b/linux-user/aarch64/vdso-le.so
Binary files differ
diff --git a/linux-user/aarch64/vdso.S b/linux-user/aarch64/vdso.S
index 34d3a9e..a0ac148 100644
--- a/linux-user/aarch64/vdso.S
+++ b/linux-user/aarch64/vdso.S
@@ -63,7 +63,11 @@ vdso_syscall __kernel_clock_getres, __NR_clock_getres
* For now, elide the unwind info for __kernel_rt_sigreturn and rely on
* the libgcc fallback routine as we have always done. This requires
* that the code sequence used be exact.
+ *
+ * Add a nop as a spacer to ensure that unwind does not pick up the
+ * unwind info from the preceding syscall.
*/
+ nop
__kernel_rt_sigreturn:
/* No BTI C insn here -- we arrive via RET. */
mov x8, #__NR_rt_sigreturn