Rev 2964 | Rev 2969 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2964 | Rev 2968 | ||
---|---|---|---|
Line 53... | Line 53... | ||
53 | printf("This is loader\n"); |
53 | printf("This is loader\n"); |
54 | getchar(); |
54 | getchar(); |
55 | 55 | ||
56 | printf("Load program\n"); |
56 | printf("Load program\n"); |
57 | 57 | ||
58 | rc = elf_load_file("/tetris", &prog_info); |
58 | rc = elf_load_file("/dltest", &prog_info); |
59 | if (rc < 0) { |
59 | if (rc < 0) { |
60 | printf("failed to load program\n"); |
60 | printf("failed to load program\n"); |
61 | return 1; |
61 | return 1; |
62 | } |
62 | } |
63 | 63 | ||
64 | printf("Create PCB\n"); |
64 | printf("Create PCB\n"); |
65 | if (elf_create_pcb(&prog_info) < 0) return 1; |
65 | if (elf_create_pcb(&prog_info) < 0) return 1; |
66 | 66 | ||
- | 67 | getchar(); |
|
- | 68 | ||
67 | printf("Load dynamic linker\n"); |
69 | printf("Load dynamic linker\n"); |
68 | file_name = "/rtld.so"; |
70 | file_name = "/rtld.so"; |
69 | printf("open and read '%s'...\n", file_name); |
71 | printf("open and read '%s'...\n", file_name); |
70 | rc = elf_load_file(file_name, &interp_info); |
72 | rc = elf_load_file(file_name, &interp_info); |
71 | if (rc < 0) { |
73 | if (rc < 0) { |