Added support for 64-bits x86 in OpenBSD
This commit is contained in:
parent
16b5a64a8d
commit
f76c138335
@ -122,6 +122,9 @@ static int _elfstrtab_set(AsmFormatPlugin * format, ElfStrtab * strtab,
|
||||
/* variables */
|
||||
static ElfArch elf_arch[] =
|
||||
{
|
||||
#ifdef EM_AMD64
|
||||
{ "amd64", EM_AMD64, ELFCLASS64, ELFDATA2LSB, 0x4 },
|
||||
#endif
|
||||
#ifdef EM_X86_64
|
||||
{ "amd64", EM_X86_64, ELFCLASS64, ELFDATA2LSB, 0x4 },
|
||||
#endif
|
||||
@ -360,6 +363,10 @@ static char const * _detect_64(AsmFormatPlugin * format, Elf64_Ehdr * ehdr)
|
||||
_swap_64_ehdr(ehdr);
|
||||
switch(ehdr->e_machine)
|
||||
{
|
||||
#ifdef EM_AMD64
|
||||
case EM_AMD64:
|
||||
return "amd64";
|
||||
#endif
|
||||
case EM_SPARC:
|
||||
case EM_SPARCV9:
|
||||
return "sparc64";
|
||||
|
Loading…
Reference in New Issue
Block a user