elf64type.c (269B)
1 #include <stdio.h> 2 #include <string.h> 3 4 #include <scc/mach.h> 5 6 #include "../libmach.h" 7 #include "elf64.h" 8 9 int 10 elf64type(char *name) 11 { 12 struct arch *ap; 13 14 for (ap = elf64archs; ap ->name; ap++) { 15 if (strcmp(ap->name, name) == 0) 16 return ap->type; 17 } 18 19 return -1; 20 }