From 291db1530cb122e7235ceb707125caf44ac4560c Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 20 Dec 2024 12:38:57 +0100 Subject: [PATCH] [LA64] This should fix static build --- CMakeLists.txt | 2 +- src/wrapped/wrappedlibc_private.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 766f531cd..b54dbe97a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -781,7 +781,7 @@ if(NOT CI) OUTPUT "${BOX64_ROOT}/src/wrapped/generated/functions_list.txt" COMMAND "${PYTHON_EXECUTABLE}" "${BOX64_ROOT}/rebuild_wrappers.py" "${BOX64_ROOT}" - "PANDORA" "HAVE_LD80BITS" "NOALIGN" "HAVE_TRACE" "ANDROID" "TERMUX" "STATICBUILD" "--" + "PANDORA" "HAVE_LD80BITS" "NOALIGN" "HAVE_TRACE" "ANDROID" "TERMUX" "STATICBUILD" "LA64" "--" ${WRAPPEDS_HEAD} MAIN_DEPENDENCY "${BOX64_ROOT}/rebuild_wrappers.py" DEPENDS ${WRAPPEDS} ${WRAPPEDS_HEAD} diff --git a/src/wrapped/wrappedlibc_private.h b/src/wrapped/wrappedlibc_private.h index 3aedd4a4f..1aa1ca3ef 100644 --- a/src/wrapped/wrappedlibc_private.h +++ b/src/wrapped/wrappedlibc_private.h @@ -1509,7 +1509,11 @@ GOWM(prctl, iFEiLLLL) GO(pread, lFipLl) GOW(__pread64, lFipLI) GO(pread64, lFipLI) +#ifdef LA64 +GO2(__pread64_chk, lFipLlL, __pread_chk) +#else GO(__pread64_chk, lFipLlL) +#endif GO(__pread_chk, lFipLlL) GO(preadv, lFipil) GO(preadv2, lFipili)