File tree Expand file tree Collapse file tree 6 files changed +36
-1
lines changed Expand file tree Collapse file tree 6 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ set(TARGET_LIBC_ENTRYPOINTS
18
18
libc.src.ctype.toupper
19
19
20
20
# dlfcn.h entrypoints
21
+ libc.src.dlfcn.dladdr
21
22
libc.src.dlfcn.dlclose
22
23
libc.src.dlfcn.dlerror
23
24
libc.src.dlfcn.dlopen
Original file line number Diff line number Diff line change @@ -461,3 +461,12 @@ add_proxy_header_library(
461
461
libc.include.llvm-libc-types.struct_sched_param
462
462
libc.include.sched
463
463
)
464
+
465
+ add_proxy_header_library (
466
+ dl_info
467
+ HDRS
468
+ dl_info.h
469
+ FULL_BUILD_DEPENDS
470
+ libc.include.llvm-libc-types.dl_info
471
+ libc.include.dlfcn
472
+ )
Original file line number Diff line number Diff line change
1
+ //===-- Proxy for struct timespec ----------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ //===----------------------------------------------------------------------===//
8
+ #ifndef LLVM_LIBC_HDR_TYPES_DLINFO_H
9
+ #define LLVM_LIBC_HDR_TYPES_DLINFO_H
10
+
11
+ #ifdef LIBC_FULL_BUILD
12
+
13
+ #include "include/llvm-libc-types/Dl_info.h"
14
+
15
+ #else
16
+
17
+ #include <dlfcn.h>
18
+
19
+ #endif // LIBC_FULL_BUILD
20
+
21
+ #endif // LLVM_LIBC_HDR_TYPES_STRUCT_TIMESPEC_H
Original file line number Diff line number Diff line change @@ -54,4 +54,5 @@ add_entrypoint_object(
54
54
dladdr.h
55
55
DEPENDS
56
56
libc.include.dlfcn
57
+ libc.hdr.types.dl_info
57
58
)
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ namespace LIBC_NAMESPACE_DECL {
15
15
16
16
// TODO: https:// github.com/llvm/llvm-project/issues/97929
17
17
LLVM_LIBC_FUNCTION (int , dladdr,
18
- (const void *__restrict addr, Dl_info *__restrict info)) {
18
+ ([[maybe_unused]] const void *__restrict addr,
19
+ [[maybe_unused]] Dl_info *__restrict info)) {
19
20
return -1 ;
20
21
}
21
22
Original file line number Diff line number Diff line change 11
11
12
12
#include " src/__support/macros/config.h"
13
13
14
+ #include " hdr/types/dl_info.h"
15
+
14
16
namespace LIBC_NAMESPACE_DECL {
15
17
16
18
int dladdr (const void *__restrict, Dl_info *__restrict);
You can’t perform that action at this time.
0 commit comments