Rev 3535 | Rev 3554 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3535 | Rev 3552 | ||
---|---|---|---|
Line 229... | Line 229... | ||
229 | { |
229 | { |
230 | int rc; |
230 | int rc; |
231 | 231 | ||
232 | // printf("Load program '%s'\n", pathname); |
232 | // printf("Load program '%s'\n", pathname); |
233 | 233 | ||
234 | rc = elf_load_file(pathname, 0, &prog_info); |
234 | rc = elf_load_file(pathname, 0, 0, &prog_info); |
235 | if (rc < 0) { |
235 | if (rc < 0) { |
236 | printf("failed to load program\n"); |
236 | printf("failed to load program\n"); |
237 | ipc_answer_0(rid, EINVAL); |
237 | ipc_answer_0(rid, EINVAL); |
238 | return 1; |
238 | return 1; |
239 | } |
239 | } |
Line 252... | Line 252... | ||
252 | ipc_answer_0(rid, EOK); |
252 | ipc_answer_0(rid, EOK); |
253 | return 0; |
253 | return 0; |
254 | } |
254 | } |
255 | 255 | ||
256 | printf("Load dynamic linker '%s'\n", prog_info.interp); |
256 | printf("Load dynamic linker '%s'\n", prog_info.interp); |
257 | rc = elf_load_file(prog_info.interp, RTLD_BIAS, &interp_info); |
257 | rc = elf_load_file(prog_info.interp, RTLD_BIAS, 0, &interp_info); |
258 | if (rc < 0) { |
258 | if (rc < 0) { |
259 | printf("failed to load dynamic linker\n"); |
259 | printf("failed to load dynamic linker\n"); |
260 | ipc_answer_0(rid, EINVAL); |
260 | ipc_answer_0(rid, EINVAL); |
261 | return 1; |
261 | return 1; |
262 | } |
262 | } |