(fmt, path)
| 237 | |
| 238 | |
| 239 | def load_image(fmt, path): |
| 240 | if fmt == "elf": |
| 241 | return ELFImage(open_input(path)) |
| 242 | if fmt == "coff": |
| 243 | return COFFImage(read_input(path)) |
| 244 | raise Exception("unsupported object file format") |
| 245 | |
| 246 | |
| 247 | def open_output(path): |
no test coverage detected