elfarchs.c (320B)
1 #include <stdio.h> 2 3 4 #include <scc/mach.h> 5 #include <scc/elf/elftypes.h> 6 #include <scc/elf/elfhdr.h> 7 #include <scc/elf.h> 8 9 #include "../libmach.h" 10 11 struct arch elfarchs[] = { 12 { 13 .name = "elf-amd64", 14 .mach = EM_X86_64, 15 .endian = ELFDATA2LSB, 16 .type = OBJ(ELF, ARCHAMD64, LITTLE_ENDIAN), 17 .is32 = 0, 18 }, 19 NULL, 20 };