From 27d18e41690c698eef55e19a8133e336a27e971a Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 26 Sep 2021 12:24:47 +0200 Subject: Another build fixe for the untested loogarch64 support --- src/include/myalign.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/myalign.h b/src/include/myalign.h index 9d2aed34..e0539cf9 100755 --- a/src/include/myalign.h +++ b/src/include/myalign.h @@ -111,7 +111,7 @@ typedef struct va_list { uintptr_t *p = (uintptr_t*)(SCRATCH); \ int n = (X64_VA_MAX_REG - (VA)->gp_offset)/8; \ if(n) memcpy(&p[0], (VA)->reg_save_area, n*8); \ - memcpy(&p[n], STACK, 100*8); \ + memcpy(&p[n], (VA)->overflow_arg_area, 100*8); \ sysv_varargs = (va_list)p; \ } // this is an approximation, and if the va_list have some float/double, it will fail! -- cgit 1.4.1