| 126 | } |
| 127 | |
| 128 | static int iself(const void *input) |
| 129 | { |
| 130 | const Elf32_Ehdr *ehdr = input; |
| 131 | return !memcmp(ehdr->e_ident, ELFMAG, 4); |
| 132 | } |
| 133 | |
| 134 | /* todo: Consider using deflate() and inflate() instead of compress() and |
| 135 | * decompress(), especially if memory allocation somehow becomes a problem. |