Rev 3983 | Rev 4014 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3983 | Rev 4012 | ||
---|---|---|---|
Line 268... | Line 268... | ||
268 | * @param request |
268 | * @param request |
269 | * @return 0 on success, !0 on error. |
269 | * @return 0 on success, !0 on error. |
270 | */ |
270 | */ |
271 | static void loader_run(ipc_callid_t rid, ipc_call_t *request) |
271 | static void loader_run(ipc_callid_t rid, ipc_call_t *request) |
272 | { |
272 | { |
- | 273 | const char *cp; |
|
- | 274 | ||
273 | /* Set the task name. */ |
275 | /* Set the task name. */ |
- | 276 | cp = strrchr(pathname, '/'); |
|
- | 277 | cp = (cp == NULL) ? pathname : (cp + 1); |
|
274 | task_set_name(pathname); |
278 | task_set_name(cp); |
275 | 279 | ||
276 | if (is_dyn_linked == true) { |
280 | if (is_dyn_linked == true) { |
277 | /* Dynamically linked program */ |
281 | /* Dynamically linked program */ |
278 | DPRINTF("Run ELF interpreter.\n"); |
282 | DPRINTF("Run ELF interpreter.\n"); |
279 | DPRINTF("Entry point: 0x%lx\n", interp_info.entry); |
283 | DPRINTF("Entry point: 0x%lx\n", interp_info.entry); |