Blame SOURCES/ltrace-0.7.91-aarch64-params.patch

03779e
diff -rup a/sysdeps/linux-gnu/aarch64/fetch.c b/sysdeps/linux-gnu/aarch64/fetch.c
03779e
--- a/sysdeps/linux-gnu/aarch64/fetch.c	2018-07-05 16:06:10.066626252 -0400
03779e
+++ b/sysdeps/linux-gnu/aarch64/fetch.c	2018-07-05 16:17:17.659748481 -0400
03779e
@@ -308,12 +308,9 @@ arch_fetch_arg_init(enum tof type, struc
03779e
 	struct fetch_script how = pass_arg(context, proc, ret_info);
03779e
 	if (how.c == CVT_ERR)
03779e
 		goto fail;
03779e
-	if (how.c == CVT_NOP && how.f == FETCH_STACK) {
03779e
+	if (how.c == CVT_BYREF && how.f == FETCH_GPR) {
03779e
 		/* XXX double cast.  */
03779e
 		context->x8 = (arch_addr_t) (uintptr_t) context->gregs.regs[8];
03779e
-		/* See the comment above about the assert.  */
03779e
-		assert(! "Unexpected: first argument passed on stack.");
03779e
-		abort();
03779e
 	}
03779e
 
03779e
 	return context;
03779e
diff -rup a/testsuite/ltrace.main/system_call_params.exp b/testsuite/ltrace.main/system_call_params.exp
03779e
--- a/testsuite/ltrace.main/system_call_params.exp	2018-07-05 16:06:10.516624926 -0400
03779e
+++ b/testsuite/ltrace.main/system_call_params.exp	2018-07-05 16:58:01.549830643 -0400
03779e
@@ -61,13 +61,13 @@ set conf [ltraceNamedSource "$dir/syscal
03779e
 # doesn't list readdir, that would be taken from somelib.conf with a
03779e
 # wrong prototype.
03779e
 
03779e
-ltraceMatch1 [ltraceRun -L -S -F $conf -- $bin] {^open@SYS\("/some/path"} == 0
03779e
+ltraceMatch1 [ltraceRun -L -S -F $conf -- $bin] {^open@SYS\("/some/path", 0\)} == 0
03779e
 
03779e
 # On the other hand, if -F somedir/ is given, we want to accept
03779e
 # syscalls.conf found there.
03779e
 
03779e
 ltraceMatch [ltraceRun -L -S -F $dir -- $bin] {
03779e
-    {{^open@SYS\("/some/path"} == 1}
03779e
+    {{^open@SYS\("/some/path", 0\)} == 1}
03779e
     {{^write@SYS\(1, "something", 10\)} == 1}
03779e
     {{^mount@SYS\("source", "target", "filesystemtype"} == 1}
03779e
 }
03779e
Only in b/testsuite/ltrace.main: system_call_params.exp~