aboutsummaryrefslogtreecommitdiff
path: root/libc/test
diff options
context:
space:
mode:
authorSchrodinger ZHU Yifan <yifanzhu@rochester.edu>2024-06-13 07:45:25 -0700
committerGitHub <noreply@github.com>2024-06-13 07:45:25 -0700
commitca05204f9aa258c5324d5675c7987c7e570168a0 (patch)
treeebfb8d728e566dbcb4e707e188221135397e2a4b /libc/test
parenta9883739571f0adbe33219a74a934be7f8bd4f62 (diff)
downloadllvm-ca05204f9aa258c5324d5675c7987c7e570168a0.zip
llvm-ca05204f9aa258c5324d5675c7987c7e570168a0.tar.gz
llvm-ca05204f9aa258c5324d5675c7987c7e570168a0.tar.bz2
[libc] fix aarch64 linux full build (#95358)
Diffstat (limited to 'libc/test')
-rw-r--r--libc/test/IntegrationTest/test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/test/IntegrationTest/test.cpp b/libc/test/IntegrationTest/test.cpp
index 3bdbe89..27e7f29 100644
--- a/libc/test/IntegrationTest/test.cpp
+++ b/libc/test/IntegrationTest/test.cpp
@@ -79,4 +79,10 @@ void *realloc(void *ptr, size_t s) {
// Integration tests are linked with -nostdlib. BFD linker expects
// __dso_handle when -nostdlib is used.
void *__dso_handle = nullptr;
+
+// On some platform (aarch64 fedora tested) full build integration test
+// objects need to link against libgcc, which may expect a __getauxval
+// function. For now, it is fine to provide a weak definition that always
+// returns false.
+[[gnu::weak]] bool __getauxval(uint64_t, uint64_t *) { return false; }
} // extern "C"