Changeset a6dffb8 in mainline for uspace/lib
- Timestamp:
- 2011-04-28T18:56:01Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b40a3b6
- Parents:
- b678410
- Location:
- uspace/lib/c/rtld
- Files:
-
- 7 edited
- 1 moved
-
arch/ia32/src/reloc.c (modified) (1 diff)
-
arch/mips32/src/reloc.c (modified) (1 diff)
-
arch/ppc32/src/reloc.c (modified) (1 diff)
-
dynamic.c (modified) (1 diff)
-
include/rtld.h (modified) (1 diff)
-
include/rtld_debug.h (moved) (moved from uspace/app/dload/include/start.h ) (1 diff)
-
module.c (modified) (4 diffs)
-
symbol.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/rtld/arch/ia32/src/reloc.c
rb678410 ra6dffb8 41 41 #include <symbol.h> 42 42 #include <rtld.h> 43 #include <rtld_debug.h> 43 44 44 45 #include <rtld_arch.h> -
uspace/lib/c/rtld/arch/mips32/src/reloc.c
rb678410 ra6dffb8 41 41 #include <symbol.h> 42 42 #include <rtld.h> 43 #include <rtld_debug.h> 43 44 44 45 #include <rtld_arch.h> -
uspace/lib/c/rtld/arch/ppc32/src/reloc.c
rb678410 ra6dffb8 41 41 #include <symbol.h> 42 42 #include <rtld.h> 43 #include <rtld_debug.h> 43 44 #include <smc.h> 44 45 -
uspace/lib/c/rtld/dynamic.c
rb678410 ra6dffb8 41 41 #include <dynamic.h> 42 42 #include <rtld.h> 43 #include <rtld_debug.h> 43 44 44 45 void dynamic_parse(elf_dyn_t *dyn_ptr, size_t bias, dyn_info_t *info) -
uspace/lib/c/rtld/include/rtld.h
rb678410 ra6dffb8 42 42 #include <module.h> 43 43 44 /* Define to enable debugging mode. */45 #undef RTLD_DEBUG46 47 #ifdef RTLD_DEBUG48 #define DPRINTF(format, ...) printf(format, ##__VA_ARGS__)49 #else50 #define DPRINTF(format, ...) if (0) printf(format, ##__VA_ARGS__)51 #endif52 53 44 typedef struct { 54 45 elf_dyn_t *rtld_dynamic; -
uspace/lib/c/rtld/include/rtld_debug.h
rb678410 ra6dffb8 27 27 */ 28 28 29 /** @addtogroup init29 /** @addtogroup generic 30 30 * @{ 31 31 */ 32 /** 33 * @file 32 /** @file 34 33 */ 35 34 36 #ifndef _DLOAD_START_H37 #define _DLOAD_START_H35 #ifndef RTLD_DEBUG_H_ 36 #define RTLD_DEBUG_H_ 38 37 39 void program_run(void *entry, pcb_t *pcb); 38 #include <sys/types.h> 39 #include <adt/list.h> 40 41 #include <dynamic.h> 42 #include <module.h> 43 44 /* Define to enable debugging mode. */ 45 #undef RTLD_DEBUG 46 47 #ifdef RTLD_DEBUG 48 #define DPRINTF(format, ...) printf(format, ##__VA_ARGS__) 49 #else 50 #define DPRINTF(format, ...) if (0) printf(format, ##__VA_ARGS__) 51 #endif 40 52 41 53 #endif -
uspace/lib/c/rtld/module.c
rb678410 ra6dffb8 43 43 44 44 #include <rtld.h> 45 #include <rtld_debug.h> 45 46 #include <dynamic.h> 46 47 #include <elf_load.h> … … 97 98 module_t *m; 98 99 const char *p, *soname; 100 101 DPRINTF("module_find('%s')\n", name); 99 102 100 103 /* … … 107 110 108 111 /* Traverse list of all modules. Not extremely fast, but simple */ 112 DPRINTF("head = %p\n", head); 109 113 for (cur = head->next; cur != head; cur = cur->next) { 114 DPRINTF("cur = %p\n", cur); 110 115 m = list_get_instance(cur, module_t, modules_link); 111 116 if (str_cmp(m->dyn.soname, soname) == 0) { … … 185 190 module_t *dm; 186 191 size_t n, i; 192 193 DPRINTF("module_load_deps('%s')\n", m->dyn.soname); 187 194 188 195 /* Count direct dependencies */ -
uspace/lib/c/rtld/symbol.c
rb678410 ra6dffb8 40 40 41 41 #include <rtld.h> 42 #include <rtld_debug.h> 42 43 #include <symbol.h> 43 44 #include <elf.h>
Note:
See TracChangeset
for help on using the changeset viewer.
