forked from unikraft/lib-musl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.uk.musl.ldso
49 lines (45 loc) · 2.28 KB
/
Makefile.uk.musl.ldso
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ifneq ($(CONFIG_LIBPOSIX_LIBDL),y)
LIBMUSL_LDSO_HDRS-y += $(LIBMUSL)/include/dlfcn.h
LIBMUSL_LDSO_HDRS-y += $(LIBMUSL)/include/elf.h
LIBMUSL_LDSO_HDRS-y += $(LIBMUSL)/src/internal/libc.h
LIBMUSL_LDSO_HDRS-y += $(LIBMUSL)/include/link.h
LIBMUSL_LDSO_HDRS-y += $(LIBMUSL)/src/internal/pthread_impl.h
LIBMUSL_LDSO_HDRS-y += $(LIBMUSL)/include/stdarg.h
LIBMUSL_LDSO_HDRS-y += $(LIBMUSL)/include/stddef.h
LIBMUSL_LDSO_HDRS-y += $(LIBMUSL)/include/stdint.h
LIBMUSL_LDSO_HDRS-y += $(LIBMUSL)/include/stdlib.h
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/__dlsym.c
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/dl_iterate_phdr.c
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/dladdr.c
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/dlclose.c
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/dlerror.c
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/dlinfo.c
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/dlopen.c
ifeq (arm,$(CONFIG_UK_ARCH))
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/arm/dlsym.s|arm
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/arm/find_exidx.c|arm
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/tlsdesc.c
else ifeq (x86_32,$(CONFIG_UK_ARCH))
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/i386/dlsym.s|x86_32
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/i386/tlsdesc.s|x86_32
else ifeq (x86_64,$(CONFIG_UK_ARCH))
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/x86_64/dlsym.s|x86_64
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/x86_64/tlsdesc.s|x86_64
else
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/tlsdesc.c
LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/dlsym.c
endif
endif
#LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/aarch64/dlsym.s
#LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/aarch64/tlsdesc.s
#LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/microblaze/dlsym.s
#LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/mips/dlsym.s
#LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/mips64/dlsym.s
#LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/mipsn32/dlsym.s
#LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/or1k/dlsym.s
#LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/powerpc/dlsym.s
#LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/powerpc64/dlsym.s
#LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/s390x/dlsym.s
#LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/sh/dlsym.s
#LIBMUSL_LDSO_SRCS-y += $(LIBMUSL)/src/ldso/x32/dlsym.s
$(eval $(call _libmusl_import_lib,ldso,$(LIBMUSL_LDSO_HDRS-y),$(LIBMUSL_LDSO_SRCS-y)))