Changeset View
Changeset View
Standalone View
Standalone View
head/libexec/rtld-elf/rtld-libc/Makefile.inc
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
# Also use all the syscall .o files from libc_nossp_pic: | # Also use all the syscall .o files from libc_nossp_pic: | ||||
_libc_other_objects= sigsetjmp lstat stat fstat fstatat fstatfs syscall \ | _libc_other_objects= sigsetjmp lstat stat fstat fstatat fstatfs syscall \ | ||||
cerror geteuid getegid sigfastblock munmap mprotect \ | cerror geteuid getegid sigfastblock munmap mprotect \ | ||||
sysarch __sysctl issetugid __getcwd utrace getpid \ | sysarch __sysctl issetugid __getcwd utrace getpid \ | ||||
thr_self thr_kill pread mmap lseek _exit _fstat _fstatat _fstatfs \ | thr_self thr_kill pread mmap lseek _exit _fstat _fstatat _fstatfs \ | ||||
getdirentries _getdirentries _close _fcntl _open _openat _read \ | getdirentries _getdirentries _close _fcntl _open _openat _read \ | ||||
_sigprocmask _write readlink __realpathat _setjmp setjmp setjmperr | _sigprocmask _write readlink __realpathat _setjmp setjmp setjmperr | ||||
# Allow building files from libcompiler_rt. Beware, there are some name | |||||
# collisions between libcompiler_rt files and libc files. | |||||
CRTSRC= ${SRCTOP}/contrib/llvm-project/compiler-rt/lib/builtins | |||||
.PATH: ${CRTSRC} | |||||
# Finally add additional architecture-dependent libc dependencies | # Finally add additional architecture-dependent dependencies | ||||
.if ${LIBC_ARCH} == "arm" | .if ${LIBC_ARCH} == "arm" | ||||
# ARM needs aeabi_unwind_cpp for _setjmp | # ARM needs aeabi_unwind_cpp for _setjmp | ||||
_libc_other_objects+=aeabi_unwind_cpp | _libc_other_objects+=aeabi_unwind_cpp | ||||
.elif ${LIBC_ARCH} == "i386" | .elif ${LIBC_ARCH} == "i386" | ||||
# __udivdi3 is needed by kvprintf() in rtld_printf.c | # __udivdi3 is needed by kvprintf() in rtld_printf.c | ||||
# i386 also needs i386_set_gsbase for allocate_initial_tls() | # i386 also needs i386_set_gsbase for allocate_initial_tls() | ||||
_libc_other_objects+=umoddi3 udivdi3 qdivrem i386_set_gsbase | _libc_other_objects+=umoddi3 udivdi3 qdivrem i386_set_gsbase | ||||
SRCS+= udivmoddi4.c | |||||
.elif ${LIBC_ARCH} == "powerpc" || ${LIBC_ARCH} == "powerpcspe" | .elif ${LIBC_ARCH} == "powerpc" || ${LIBC_ARCH} == "powerpcspe" | ||||
# ppc needs __syncicache for reloc.c and __umoddi3+__udivdi3 for rtld_printf.c | # ppc needs __syncicache for reloc.c and __umoddi3+__udivdi3 for rtld_printf.c | ||||
_libc_other_objects+=syncicache umoddi3 udivdi3 qdivrem | _libc_other_objects+=syncicache umoddi3 udivdi3 qdivrem | ||||
# for some reason there is also a reference to abs() | # for some reason there is also a reference to abs() | ||||
_libc_other_objects+=abs | _libc_other_objects+=abs | ||||
.elif ${LIBC_ARCH} == "powerpc64" | .elif ${LIBC_ARCH} == "powerpc64" | ||||
# ppc64 needs __syncicache for reloc.c | # ppc64 needs __syncicache for reloc.c | ||||
_libc_other_objects+=syncicache | _libc_other_objects+=syncicache | ||||
Show All 27 Lines |