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

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