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

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