- Timestamp:
- 2011-04-30T20:22:35Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5b72635
- Parents:
- 2ca5f632
- Location:
- uspace
- Files:
-
- 5 edited
-
Makefile (modified) (2 diffs)
-
Makefile.common (modified) (1 diff)
-
lib/c/Makefile (modified) (2 diffs)
-
lib/c/generic/libc.c (modified) (1 diff)
-
srv/loader/main.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile
r2ca5f632 r7fb3f1c 35 35 DIRS = \ 36 36 app/bdsh \ 37 app/dltest2 \38 37 app/edit \ 39 38 app/getterm \ … … 96 95 ifeq ($(CONFIG_BUILD_SHARED_LIBS), y) 97 96 DIRS += \ 98 app/dltest 97 app/dltest \ 98 app/dltest2 99 99 endif 100 100 -
uspace/Makefile.common
r2ca5f632 r7fb3f1c 73 73 endif 74 74 75 ifneq ($(SLIBRARY),) 76 LARCHIVE = $(LIBRARY).la 77 LOUTPUT = $(SLIBRARY) 78 EXTRA_OUTPUT += $(LOUTPUT).disasm 79 EXTRA_CLEAN += $(LOUTPUT).map $(LOUTPUT).ldisasm \ 80 $(LIBC_PREFIX)/shared/arch/$(UARCH)/_lib.ld 75 ifeq ($(CONFIG_BUILD_SHARED_LIBS), y) 76 ifneq ($(SLIBRARY),) 77 LARCHIVE = $(LIBRARY).la 78 LOUTPUT = $(SLIBRARY) 79 EXTRA_OUTPUT += $(LOUTPUT).disasm 80 EXTRA_CLEAN += $(LOUTPUT).map $(LOUTPUT).ldisasm \ 81 $(LIBC_PREFIX)/shared/arch/$(UARCH)/_lib.ld 82 endif 81 83 endif 82 84 -
uspace/lib/c/Makefile
r2ca5f632 r7fb3f1c 71 71 generic/device/hw_res.c \ 72 72 generic/device/char_dev.c \ 73 generic/dlfcn.c \74 73 generic/event.c \ 75 74 generic/errno.c \ … … 126 125 generic/sort.c \ 127 126 generic/stats.c \ 128 generic/assert.c \ 129 rtld/rtld.c \ 130 rtld/elf_load.c \ 131 rtld/dynamic.c \ 132 rtld/module.c \ 133 rtld/symbol.c 127 generic/assert.c 128 129 ifeq ($(CONFIG_RTLD), y) 130 GENERIC_SOURCES += \ 131 generic/dlfcn.c \ 132 rtld/rtld.c \ 133 rtld/elf_load.c \ 134 rtld/dynamic.c \ 135 rtld/module.c \ 136 rtld/symbol.c 137 endif 134 138 135 139 SOURCES = \ -
uspace/lib/c/generic/libc.c
r2ca5f632 r7fb3f1c 53 53 #include "private/io.h" 54 54 55 #ifdef CONFIG_RTLD 55 56 /* From librtld. */ 56 57 #include <rtld.h> 58 #endif 57 59 //#include <string.h> 58 60 -
uspace/srv/loader/main.c
r2ca5f632 r7fb3f1c 65 65 66 66 /* From librtld */ 67 #ifdef CONFIG_RTLD 67 68 #include <rtld.h> 68 69 #include <dynamic.h> … … 70 71 #include <module.h> 71 72 73 static int ldr_load_dyn_linked(elf_info_t *p_info); 74 #endif 75 72 76 #define DPRINTF(...) 73 74 static int ldr_load_dyn_linked(elf_info_t *p_info);75 77 76 78 /** Pathname of the file that will be loaded */ … … 102 104 static bool connected = false; 103 105 106 #ifdef CONFIG_RTLD 104 107 /** State structure of the dynamic linker. */ 105 108 runtime_env_t dload_re; 106 109 static module_t prog_mod; 110 #endif 107 111 108 112 static void ldr_get_taskid(ipc_callid_t rid, ipc_call_t *request) … … 317 321 318 322 DPRINTF("Binary is dynamically linked.\n"); 323 #ifdef CONFIG_RTLD 319 324 DPRINTF(" - pcb address: %p\n", &pcb); 320 325 DPRINTF( "- prog dynamic: %p\n", prog_info.dynamic); 321 326 322 327 rc = ldr_load_dyn_linked(&prog_info); 323 328 #else 329 rc = ENOTSUP; 330 #endif 324 331 async_answer_0(rid, rc); 325 332 return 0; 326 333 } 334 335 #ifdef CONFIG_RTLD 327 336 328 337 static int ldr_load_dyn_linked(elf_info_t *p_info) … … 372 381 return 0; 373 382 } 383 #endif 374 384 375 385 /** Run the previously loaded program.
Note:
See TracChangeset
for help on using the changeset viewer.
