Initial version of ROCgdb
[deliverable/binutils-gdb.git] / binutils / elfedit.c
index da1984e5b1d2a7a83470e1b89812bc6a5ba604bc..b5e4b3c2f5a9d8f07f00d2350198ac918b28463e 100644 (file)
@@ -1,5 +1,6 @@
 /* elfedit.c -- Update the ELF header of an ELF format file
    Copyright (C) 2010-2019 Free Software Foundation, Inc.
+   Copyright (C) 2019 Advanced Micro Devices, Inc. All rights reserved.
 
    This file is part of GNU Binutils.
 
@@ -292,6 +293,7 @@ elf_class (int mach)
       return ELF_CLASS_32;
     case EM_L1OM:
     case EM_K1OM:
+    case EM_AMDGPU:
       return ELF_CLASS_64;
     case EM_X86_64:
     case EM_NONE:
@@ -819,6 +821,8 @@ elf_machine (const char *mach)
     return EM_X86_64;
   if (strcasecmp (mach, "x86-64") == 0)
     return EM_X86_64;
+  if (strcasecmp (mach, "amdgcn") == 0)
+    return EM_AMDGPU;
   if (strcasecmp (mach, "none") == 0)
     return EM_NONE;
 
This page took 0.024119 seconds and 4 git commands to generate.