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

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