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

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