| 109 | } |
| 110 | |
| 111 | static int convert_elf(struct buffer *buf) |
| 112 | { |
| 113 | struct buffer out; |
| 114 | |
| 115 | if (parse_elf_to_xip_ram(buf, &out)) { |
| 116 | printf("\tError parsing ELF file\n"); |
| 117 | return -1; |
| 118 | } |
| 119 | |
| 120 | /* Discard the elf file in buf and replace with the progbits */ |
| 121 | free(buf->data); |
| 122 | buf->data = out.data; |
| 123 | buf->size = out.size; |
| 124 | |
| 125 | return 0; |
| 126 | } |
| 127 | |
| 128 | static int iself(const void *input) |
| 129 | { |
no test coverage detected