Changeset 7fb3f1c in mainline
- Timestamp:
- 2011-04-30T20:22:35Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5b72635
- Parents:
- 2ca5f632
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
r2ca5f632 r7fb3f1c 528 528 ! [PLATFORM=sparc64&MACHINE=generic] CONFIG_AOUT_ISOFS_B (y) 529 529 530 % Dynamic linking support 531 ! [PLATFORM=ia32] CONFIG_RTLD (n/y) 532 ! [PLATFORM=abs32le|PLATFORM=amd64|PLATFORM=arm32|PLATFORM=ia64|PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=sparc64] CONFIG_RTLD (n) 533 530 534 % Build shared libraries 531 ! CONFIG_BUILD_SHARED_LIBS (y/n) 535 ! [CONFIG_RTLD=y] CONFIG_BUILD_SHARED_LIBS (n/y) 536 ! [CONFIG_RTLD=n] CONFIG_BUILD_SHARED_LIBS (n) 532 537 533 538 % Link against shared libraries -
boot/Makefile.common
r2ca5f632 r7fb3f1c 118 118 RD_DRV_CFG = 119 119 120 RD_LIBS = \ 121 $(USPACE_PATH)/lib/test/libtest.so.0 120 RD_LIBS = 121 122 ifeq ($(CONFIG_RTLD), y) 123 RD_LIBS += $(USPACE_PATH)/lib/test/libtest.so.0 124 endif 122 125 123 126 ifeq ($(CONFIG_BUILD_SHARED_LIBS), y) -
defaults/ia32/Makefile.config
r2ca5f632 r7fb3f1c 65 65 CONFIG_VESA_BPP = 16 66 66 67 # Build shared libraries68 CONFIG_BUILD_SHARED_LIBS = y69 70 # Link against shared libraries71 CONFIG_USE_SHARED_LIBS = y72 73 67 # Load disk drivers on startup 74 68 CONFIG_START_BD = n -
defaults/mips32/Makefile.config
r2ca5f632 r7fb3f1c 41 41 CONFIG_HID_OUT = generic 42 42 43 # Build shared libraries44 CONFIG_BUILD_SHARED_LIBS = n45 46 43 # Load disk drivers on startup 47 44 CONFIG_START_BD = n -
defaults/ppc32/Makefile.config
r2ca5f632 r7fb3f1c 41 41 CONFIG_BAT = y 42 42 43 # Build shared libraries44 CONFIG_BUILD_SHARED_LIBS = n45 46 43 # Load disk drivers on startup 47 44 CONFIG_START_BD = n -
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.