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

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