File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 10
10
#include < stddef.h>
11
11
#include < stdint.h>
12
12
13
+ #ifdef LIBC_TARGET_ARCH_IS_AARCH64
14
+ #include " src/sys/auxv/getauxval.h"
15
+ #endif
16
+
13
17
// Integration tests rely on the following memory functions. This is because the
14
18
// compiler code generation can emit calls to them. We want to map the external
15
19
// entrypoint to the internal implementation of the function used for testing.
@@ -82,8 +86,6 @@ void *realloc(void *ptr, size_t s) {
82
86
void *__dso_handle = nullptr ;
83
87
84
88
#ifdef LIBC_TARGET_ARCH_IS_AARCH64
85
- #include " src/sys/auxv/getauxval.h"
86
-
87
89
// Due to historical reasons, libgcc on aarch64 may expect __getauxval to be
88
90
// defined. See also https://gcc.gnu.org/pipermail/gcc-cvs/2020-June/300635.html
89
91
unsigned long __getauxval (unsigned long id) {
Original file line number Diff line number Diff line change 10
10
#include < stddef.h>
11
11
#include < stdint.h>
12
12
13
+ #ifdef LIBC_TARGET_ARCH_IS_AARCH64
14
+ #include " src/sys/auxv/getauxval.h"
15
+ #endif
16
+
13
17
namespace LIBC_NAMESPACE {
14
18
15
19
int bcmp (const void *lhs, const void *rhs, size_t count);
@@ -110,8 +114,6 @@ void __cxa_pure_virtual() {
110
114
void *__dso_handle = nullptr ;
111
115
112
116
#ifdef LIBC_TARGET_ARCH_IS_AARCH64
113
- #include " src/sys/auxv/getauxval.h"
114
-
115
117
// Due to historical reasons, libgcc on aarch64 may expect __getauxval to be
116
118
// defined. See also https://gcc.gnu.org/pipermail/gcc-cvs/2020-June/300635.html
117
119
unsigned long __getauxval (unsigned long id) {
You can’t perform that action at this time.
0 commit comments