diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2019-06-30 11:49:58 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2019-06-30 11:49:58 +0000 |
commit | b54a59f3ba244b76a34488090653df687527e53c (patch) | |
tree | c88a1ee4e11ddbe5fd350a40026c3ad0e0f61935 /libexec/rtld-elf/rtld.c | |
parent | 57f317e60ae76ba9b01fd3a56887a9580eda37cb (diff) | |
download | src-test2-b54a59f3ba244b76a34488090653df687527e53c.tar.gz src-test2-b54a59f3ba244b76a34488090653df687527e53c.zip |
Notes
Diffstat (limited to 'libexec/rtld-elf/rtld.c')
-rw-r--r-- | libexec/rtld-elf/rtld.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index ece58e138235..a42192dce8db 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -69,6 +69,7 @@ __FBSDID("$FreeBSD$"); #include "rtld_malloc.h" #include "rtld_utrace.h" #include "notes.h" +#include "rtld_libc.h" /* Types. */ typedef void (*func_ptr_type)(void); @@ -78,7 +79,6 @@ typedef void * (*path_enum_proc) (const char *path, size_t len, void *arg); /* Variables that cannot be static: */ extern struct r_debug r_debug; /* For GDB */ extern int _thread_autoinit_dummy_decl; -extern char* __progname; extern void (*__cleanup)(void); @@ -250,7 +250,6 @@ void _rtld_error(const char *, ...) __exported; /* Only here to fix -Wmissing-prototypes warnings */ int __getosreldate(void); -void __pthread_cxa_finalize(struct dl_phdr_info *a); func_ptr_type _rtld(Elf_Addr *sp, func_ptr_type *exit_proc, Obj_Entry **objp); Elf_Addr _rtld_bind(Obj_Entry *obj, Elf_Size reloff); @@ -5647,26 +5646,6 @@ __getosreldate(void) osreldate = osrel; return (osreldate); } - -void -exit(int status) -{ - - _exit(status); -} - -void (*__cleanup)(void); -int __isthreaded = 0; -int _thread_autoinit_dummy_decl = 1; - -/* - * No unresolved symbols for rtld. - */ -void -__pthread_cxa_finalize(struct dl_phdr_info *a __unused) -{ -} - const char * rtld_strerror(int errnum) { |