Changeset 8a1fb09 in mainline
- Timestamp:
- 2011-05-01T12:10:47Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9fb1397
- Parents:
- d2a6a04b
- Location:
- uspace
- Files:
-
- 1 added
- 1 deleted
- 17 edited
- 11 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/Makefile
rd2a6a04b r8a1fb09 59 59 -include arch/$(UARCH)/Makefile.inc 60 60 61 EXTRA_CFLAGS += -I rtld/include -I../../srv/loader/include61 EXTRA_CFLAGS += -I../../srv/loader/include 62 62 63 63 GENERIC_SOURCES = \ … … 130 130 GENERIC_SOURCES += \ 131 131 generic/dlfcn.c \ 132 rtld/rtld.c \133 rtld/elf_load.c \134 rtld/dynamic.c \135 rtld/module.c \136 rtld/symbol.c132 generic/rtld/rtld.c \ 133 generic/rtld/elf_load.c \ 134 generic/rtld/dynamic.c \ 135 generic/rtld/module.c \ 136 generic/rtld/symbol.c 137 137 endif 138 138 -
uspace/lib/c/arch/ia32/include/rtld/dynamic.h
rd2a6a04b r8a1fb09 33 33 */ 34 34 35 #ifndef ia32_DYNAMIC_H_36 #define ia32_DYNAMIC_H_35 #ifndef LIBC_ia32_RTLD_DYNAMIC_H_ 36 #define LIBC_ia32_RTLD_DYNAMIC_H_ 37 37 38 38 #include <sys/types.h> -
uspace/lib/c/arch/ia32/include/rtld/elf_dyn.h
rd2a6a04b r8a1fb09 33 33 */ 34 34 35 #ifndef ia32_ELF_DYN_H_36 #define ia32_ELF_DYN_H_35 #ifndef LIBC_ia32_RTLD_ELF_DYN_H_ 36 #define LIBC_ia32_RTLD_ELF_DYN_H_ 37 37 38 38 /* -
uspace/lib/c/arch/ia32/src/rtld/dynamic.c
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup rtld rtld29 /** @addtogroup libcia32 30 30 * @brief 31 31 * @{ 32 */ 32 */ 33 33 /** 34 34 * @file … … 38 38 #include <stdlib.h> 39 39 40 #include < elf_dyn.h>41 #include < dynamic.h>40 #include <rtld/elf_dyn.h> 41 #include <rtld/dynamic.h> 42 42 43 43 void dyn_parse_arch(elf_dyn_t *dp, size_t bias, dyn_info_t *info) -
uspace/lib/c/arch/ia32/src/rtld/reloc.c
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup rtld rtld29 /** @addtogroup libcia32 30 30 * @brief 31 31 * @{ 32 */ 32 */ 33 33 /** 34 34 * @file … … 39 39 40 40 #include <libarch/rtld/elf_dyn.h> 41 #include <symbol.h> 42 #include <rtld.h> 43 #include <rtld_debug.h> 44 45 #include <rtld_arch.h> 41 #include <rtld/symbol.h> 42 #include <rtld/rtld.h> 43 #include <rtld/rtld_debug.h> 44 #include <rtld/rtld_arch.h> 46 45 47 46 void module_process_pre_arch(module_t *m) -
uspace/lib/c/arch/mips32/include/rtld/dynamic.h
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup generic29 /** @addtogroup libcmips32 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef mips32_DYNAMIC_H_36 #define mips32_DYNAMIC_H_35 #ifndef LIBC_mips32_RTLD_DYNAMIC_H_ 36 #define LIBC_mips32_RTLD_DYNAMIC_H_ 37 37 38 38 #include <sys/types.h> -
uspace/lib/c/arch/mips32/include/rtld/elf_dyn.h
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup generic29 /** @addtogroup libcmips32 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef mips32_ELF_DYN_H_36 #define mips32_ELF_DYN_H_35 #ifndef LIBC_mips32_RTLD_ELF_DYN_H_ 36 #define LIBC_mips32_RTLD_ELF_DYN_H_ 37 37 38 38 /* -
uspace/lib/c/arch/mips32/src/rtld/dynamic.c
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup rtld rtld29 /** @addtogroup libcmips32 30 30 * @brief 31 31 * @{ 32 */ 32 */ 33 33 /** 34 34 * @file -
uspace/lib/c/arch/mips32/src/rtld/reloc.c
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup rtld rtld29 /** @addtogroup libcmips32 30 30 * @brief 31 31 * @{ 32 */ 32 */ 33 33 /** 34 34 * @file -
uspace/lib/c/arch/ppc32/include/rtld/dynamic.h
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup generic29 /** @addtogroup libcppc32 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef ppc32_DYNAMIC_H_36 #define ppc32_DYNAMIC_H_35 #ifndef LIBC_ppc32_RTLD_DYNAMIC_H_ 36 #define LIBC_ppc32_RTLD_DYNAMIC_H_ 37 37 38 38 #include <sys/types.h> -
uspace/lib/c/arch/ppc32/include/rtld/elf_dyn.h
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup generic29 /** @addtogroup libcppc32 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef ppc32_ELF_DYN_H_36 #define ppc32_ELF_DYN_H_35 #ifndef LIBC_ppc32_RTLD_ELF_DYN_H_ 36 #define LIBC_ppc32_RTLD_ELF_DYN_H_ 37 37 38 /* 38 /* 39 39 * ppc32 dynamic relocation types 40 40 */ -
uspace/lib/c/arch/ppc32/src/rtld/dynamic.c
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup rtld rtld29 /** @addtogroup libcppc32 30 30 * @brief 31 31 * @{ 32 */ 32 */ 33 33 /** 34 34 * @file -
uspace/lib/c/arch/ppc32/src/rtld/reloc.c
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup rtld rtld29 /** @addtogroup libcppc32 30 30 * @brief 31 31 * @{ 32 */ 32 */ 33 33 /** 34 34 * @file -
uspace/lib/c/generic/dlfcn.c
rd2a6a04b r8a1fb09 39 39 #include <dlfcn.h> 40 40 41 /* From librtld. */ 42 #include <module.h> 43 #include <symbol.h> 41 #include <rtld/module.h> 42 #include <rtld/symbol.h> 44 43 45 44 void *dlopen(const char *path, int flag) -
uspace/lib/c/generic/libc.c
rd2a6a04b r8a1fb09 54 54 55 55 #ifdef CONFIG_RTLD 56 /* From librtld. */ 57 #include <rtld.h> 56 #include <rtld/rtld.h> 58 57 #endif 59 //#include <string.h>60 58 61 59 static bool env_setup = false; -
uspace/lib/c/generic/rtld/dynamic.c
rd2a6a04b r8a1fb09 36 36 37 37 #include <stdio.h> 38 //#include <string.h>39 38 40 #include < elf_dyn.h>41 #include < dynamic.h>42 #include <rtld .h>43 #include <rtld _debug.h>39 #include <rtld/elf_dyn.h> 40 #include <rtld/dynamic.h> 41 #include <rtld/rtld.h> 42 #include <rtld/rtld_debug.h> 44 43 45 44 void dynamic_parse(elf_dyn_t *dyn_ptr, size_t bias, dyn_info_t *info) -
uspace/lib/c/generic/rtld/module.c
rd2a6a04b r8a1fb09 42 42 #include <loader/pcb.h> 43 43 44 #include <rtld.h> 45 #include <rtld_debug.h> 46 #include <dynamic.h> 44 #include <rtld/rtld.h> 45 #include <rtld/rtld_debug.h> 46 #include <rtld/dynamic.h> 47 #include <rtld/rtld_arch.h> 48 #include <rtld/module.h> 47 49 #include <elf_load.h> 48 #include <rtld_arch.h>49 #include <module.h>50 50 51 51 /** (Eagerly) process all relocation tables in a module. -
uspace/lib/c/generic/rtld/rtld.c
rd2a6a04b r8a1fb09 35 35 */ 36 36 37 #include <rtld .h>37 #include <rtld/rtld.h> 38 38 39 39 runtime_env_t *runtime_env; -
uspace/lib/c/generic/rtld/symbol.c
rd2a6a04b r8a1fb09 37 37 #include <stdio.h> 38 38 #include <stdlib.h> 39 //#include <string.h> 40 41 #include <rtld.h> 42 #include <rtld_debug.h> 43 #include <symbol.h> 39 40 #include <rtld/rtld.h> 41 #include <rtld/rtld_debug.h> 42 #include <rtld/symbol.h> 44 43 #include <elf.h> 45 44 -
uspace/lib/c/include/rtld/dynamic.h
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup generic29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef DYNAMIC_H_36 #define DYNAMIC_H_35 #ifndef LIBC_RTLD_DYNAMIC_H_ 36 #define LIBC_RTLD_DYNAMIC_H_ 37 37 38 38 #include <bool.h> 39 #include < elf_dyn.h>39 #include <rtld/elf_dyn.h> 40 40 #include <libarch/rtld/dynamic.h> 41 41 -
uspace/lib/c/include/rtld/elf_dyn.h
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup generic29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef ELF_DYN_H_36 #define ELF_DYN_H_35 #ifndef LIBC_RTLD_ELF_DYN_H_ 36 #define LIBC_RTLD_ELF_DYN_H_ 37 37 38 38 #include <arch/elf.h> -
uspace/lib/c/include/rtld/module.h
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup generic29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef MODULE_H_36 #define MODULE_H_35 #ifndef LIBC_RTLD_MODULE_H_ 36 #define LIBC_RTLD_MODULE_H_ 37 37 38 38 #include <sys/types.h> 39 #include < dynamic.h>39 #include <rtld/dynamic.h> 40 40 #include <adt/list.h> 41 41 -
uspace/lib/c/include/rtld/rtld.h
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup generic29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef RTLD_H_36 #define RTLD_H_35 #ifndef LIBC_RTLD_H_ 36 #define LIBC_RTLD_H_ 37 37 38 38 #include <sys/types.h> 39 39 #include <adt/list.h> 40 40 41 #include < dynamic.h>42 #include < module.h>41 #include <rtld/dynamic.h> 42 #include <rtld/module.h> 43 43 44 44 typedef struct { -
uspace/lib/c/include/rtld/rtld_arch.h
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup generic29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef RTLD_ARCH_H_36 #define RTLD_ARCH_H_35 #ifndef LIBC_RTLD_RTLD_ARCH_H_ 36 #define LIBC_RTLD_RTLD_ARCH_H_ 37 37 38 #include <rtld .h>38 #include <rtld/rtld.h> 39 39 #include <loader/pcb.h> 40 40 -
uspace/lib/c/include/rtld/rtld_debug.h
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup generic29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef RTLD_DEBUG_H_36 #define RTLD_DEBUG_H_35 #ifndef LIBC_RTLD_RTLD_DEBUG_H_ 36 #define LIBC_RTLD_RTLD_DEBUG_H_ 37 37 38 38 /* Define to enable debugging mode. */ -
uspace/lib/c/include/rtld/symbol.h
rd2a6a04b r8a1fb09 27 27 */ 28 28 29 /** @addtogroup generic29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef SYMBOL_H_36 #define SYMBOL_H_35 #ifndef LIBC_RTLD_SYMBOL_H_ 36 #define LIBC_RTLD_SYMBOL_H_ 37 37 38 #include <rtld .h>38 #include <rtld/rtld.h> 39 39 #include <elf.h> 40 40 -
uspace/srv/loader/Makefile
rd2a6a04b r8a1fb09 39 39 LINKER_SCRIPT = $(LIBC_PREFIX)/arch/$(UARCH)/_link-loader.ld 40 40 41 EXTRA_CFLAGS = -Iinclude -I../../lib/c/rtld/include41 EXTRA_CFLAGS = -Iinclude 42 42 43 43 BINARY = loader -
uspace/srv/loader/main.c
rd2a6a04b r8a1fb09 64 64 #include <elf_load.h> 65 65 66 /* From librtld */67 66 #ifdef CONFIG_RTLD 68 #include <rtld.h> 69 #include <dynamic.h> 70 #include <elf_load.h> 71 #include <module.h> 67 #include <rtld/rtld.h> 68 #include <rtld/dynamic.h> 69 #include <rtld/module.h> 72 70 73 71 static int ldr_load_dyn_linked(elf_info_t *p_info);
Note:
See TracChangeset
for help on using the changeset viewer.