From: Yang Yingliang <yangyingli...@huawei.com> It should use 32-bit register if libc is used by an ILP32 application on ARM64. It fix the following LTP testcase: mmap03, mmap13, mtest06, mprotect04, shmdt01, hugeshmdt01.
Signed-off-by: Yang Yingliang <yangyingli...@huawei.com> --- sysdeps/aarch64/sysdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/aarch64/sysdep.h b/sysdeps/aarch64/sysdep.h index 6673242..742d23c 100644 --- a/sysdeps/aarch64/sysdep.h +++ b/sysdeps/aarch64/sysdep.h @@ -104,7 +104,7 @@ #define LDST_GLOBAL(OP, R, T, EXPR) \ adrp x##T, :got:EXPR; \ ldr PTR_REG (T), [x##T, #:got_lo12:EXPR]; \ - OP x##R, [x##T]; + OP PTR_REG (R), [x##T]; /* Since C identifiers are not normally prefixed with an underscore on this system, the asm identifier `syscall_error' intrudes on the -- 1.8.4.5 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list