Changeset 7fb3f1c in mainline for uspace/srv
- Timestamp:
- 2011-04-30T20:22:35Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5b72635
- Parents:
- 2ca5f632
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.