Changeset View
Changeset View
Standalone View
Standalone View
libexec/rtld-elf/rtld-libc/Makefile.inc
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | _libc_other_objects= sigsetjmp lstat stat fstat fstatat fstatfs syscall \ | ||||
_sigprocmask _write readlink __realpathat _setjmp setjmp setjmperr | _sigprocmask _write readlink __realpathat _setjmp setjmp setjmperr | ||||
# Finally add additional architecture-dependent libc dependencies | # Finally add additional architecture-dependent libc 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 | # i386 needs i386_set_gsbase for allocate_initial_tls() | ||||
# i386 also needs i386_set_gsbase for allocate_initial_tls() | _libc_other_objects+=i386_set_gsbase | ||||
_libc_other_objects+=umoddi3 udivdi3 qdivrem i386_set_gsbase | |||||
.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 and abs for reloc.c | ||||
_libc_other_objects+=syncicache umoddi3 udivdi3 qdivrem | _libc_other_objects+=syncicache abs | ||||
# for some reason there is also a reference to 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 | ||||
.elif ${LIBC_ARCH} == "mips" | |||||
# 32-bit MIPS needs __umoddi3+__udivdi3 for rtld_printf.c | |||||
.if ${MACHINE_ARCH:Mmipsn32*} == "" && ${MACHINE_ARCH:Mmips64*} == "" | |||||
_libc_other_objects+=umoddi3 udivdi3 qdivrem | |||||
.endif | |||||
.endif | .endif | ||||
# Extract all the .o files from libc_nossp_pic.a. This ensures that | # Extract all the .o files from libc_nossp_pic.a. This ensures that | ||||
# we don't accidentally pull in the interposing table or similar by linking | # we don't accidentally pull in the interposing table or similar by linking | ||||
# directly against libc_nossp_pic.a | # directly against libc_nossp_pic.a | ||||
_rtld_libc_objs= | _rtld_libc_objs= | ||||
.for _obj in ${_libc_other_objects} ${_libc_string_objects} | .for _obj in ${_libc_other_objects} ${_libc_string_objects} | ||||
_rtld_libc_objs+=${_obj}.nossppico | _rtld_libc_objs+=${_obj}.nossppico | ||||
Show All 14 Lines |