mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
[libc] Add dlinfo + RTLD_DI_* macros to dlfcn.h (#149938)
An initial commit for #149911, this adds a stub implementation for dlinfo and the enums list of `RTLD_DI_*` values. While the dlinfo implementation relies on dynamic linker support, this patch will add its prototype in the generated dlfcn.h header so that it can be used by downstream platforms that have their own dlinfo implementation.
This commit is contained in:
@@ -37,6 +37,55 @@ macros:
|
||||
standards:
|
||||
- gnu
|
||||
macro_value: "((void *) 0)"
|
||||
enums:
|
||||
- name: RTLD_DI_LMID
|
||||
standards:
|
||||
- gnu
|
||||
value: 1
|
||||
- name: RTLD_DI_LINKMAP
|
||||
standards:
|
||||
- gnu
|
||||
value: 2
|
||||
- name: RTLD_DI_CONFIGADDR,
|
||||
standards:
|
||||
- gnu
|
||||
value: 3
|
||||
- name: RTLD_DI_SERINFO
|
||||
standards:
|
||||
- gnu
|
||||
value: 4
|
||||
- name: RTLD_DI_SERINFOSIZE
|
||||
standards:
|
||||
- gnu
|
||||
value: 5
|
||||
- name: RTLD_DI_ORIGIN
|
||||
standards:
|
||||
- gnu
|
||||
value: 6
|
||||
- name: RTLD_DI_PROFILENAME
|
||||
standards:
|
||||
- gnu
|
||||
value: 7
|
||||
- name: RTLD_DI_PROFILEOUT
|
||||
standards:
|
||||
- gnu
|
||||
value: 8
|
||||
- name: RTLD_DI_TLS_MODID
|
||||
standards:
|
||||
- gnu
|
||||
value: 9
|
||||
- name: RTLD_DI_TLS_DATA
|
||||
standards:
|
||||
- gnu
|
||||
value: 10
|
||||
- name: RTLD_DI_PHDR
|
||||
standards:
|
||||
- gnu
|
||||
value: 11
|
||||
- name: RTLD_DI_MAX
|
||||
standards:
|
||||
- gnu
|
||||
value: 11
|
||||
functions:
|
||||
- name: dlclose
|
||||
standards:
|
||||
@@ -63,3 +112,11 @@ functions:
|
||||
arguments:
|
||||
- type: void *__restrict
|
||||
- type: const char *__restrict
|
||||
- name: dlinfo
|
||||
standards:
|
||||
- gnu
|
||||
return_type: int
|
||||
arguments:
|
||||
- type: void *__restrict
|
||||
- type: int
|
||||
- type: void *__restrict
|
||||
|
||||
Reference in New Issue
Block a user