[binutils-gdb] bfd,binutils: add support for gfx1103

Shahab Vahedi via Binutils-cvs <[email protected]>
Newsgroups gmane.comp.gnu.binutils.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1e17a2f208f10e4bdc4e7f6001addb24cea396ee

commit 1e17a2f208f10e4bdc4e7f6001addb24cea396ee
Author: Shahab Vahedi <[email protected]>
Date:   Mon Jul 27 15:48:05 2026 +0200

    bfd,binutils: add support for gfx1103
    
    Add ELF header definition for gfx1103.  The canonical source is:
    
    https://llvm.org/docs/AMDGPUUsage.html#amdgpu-ef-amdgpu-mach-table

Diff:
---
 bfd/archures.c       |  1 +
 bfd/bfd-in2.h        |  1 +
 bfd/cpu-amdgcn.c     | 27 ++++++++++++++-------------
 binutils/readelf.c   |  1 +
 include/elf/amdgpu.h |  1 +
 5 files changed, 18 insertions(+), 13 deletions(-)

diff --git a/bfd/archures.c b/bfd/archures.c
index 0e919246673..18472b820bc 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -581,6 +581,7 @@ DESCRIPTION
 .#define bfd_mach_amdgcn_gfx1100         0x041
 .#define bfd_mach_amdgcn_gfx1101         0x046
 .#define bfd_mach_amdgcn_gfx1102         0x047
+.#define bfd_mach_amdgcn_gfx1103         0x044
 .#define bfd_mach_amdgcn_gfx1150         0x043
 .#define bfd_mach_amdgcn_gfx1151         0x04a
 .#define bfd_mach_amdgcn_gfx1152         0x055
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index e55bde7b129..8d12ddf6723 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1838,6 +1838,7 @@ enum bfd_architecture
 #define bfd_mach_amdgcn_gfx1100         0x041
 #define bfd_mach_amdgcn_gfx1101         0x046
 #define bfd_mach_amdgcn_gfx1102         0x047
+#define bfd_mach_amdgcn_gfx1103         0x044
 #define bfd_mach_amdgcn_gfx1150         0x043
 #define bfd_mach_amdgcn_gfx1151         0x04a
 #define bfd_mach_amdgcn_gfx1152         0x055
diff --git a/bfd/cpu-amdgcn.c b/bfd/cpu-amdgcn.c
index a1c691a51b1..811e8391115 100644
--- a/bfd/cpu-amdgcn.c
+++ b/bfd/cpu-amdgcn.c
@@ -58,19 +58,20 @@ static const bfd_arch_info_type arch_info_struct[] =
   N (bfd_mach_amdgcn_gfx1100, "amdgcn:gfx1100", false, NN (13)),
   N (bfd_mach_amdgcn_gfx1101, "amdgcn:gfx1101", false, NN (14)),
   N (bfd_mach_amdgcn_gfx1102, "amdgcn:gfx1102", false, NN (15)),
-  N (bfd_mach_amdgcn_gfx1150, "amdgcn:gfx1150", false, NN (16)),
-  N (bfd_mach_amdgcn_gfx1151, "amdgcn:gfx1151", false, NN (17)),
-  N (bfd_mach_amdgcn_gfx1152, "amdgcn:gfx1152", false, NN (18)),
-  N (bfd_mach_amdgcn_gfx1153, "amdgcn:gfx1153", false, NN (19)),
-  N (bfd_mach_amdgcn_gfx1200, "amdgcn:gfx1200", false, NN (20)),
-  N (bfd_mach_amdgcn_gfx1201, "amdgcn:gfx1201", false, NN (21)),
-  N (bfd_mach_amdgcn_gfx1250, "amdgcn:gfx1250", false, NN (22)),
-  N (bfd_mach_amdgcn_gfx9_generic, "amdgcn:gfx9-generic", false, NN (23)),
-  N (bfd_mach_amdgcn_gfx9_4_generic, "amdgcn:gfx9-4-generic", false, NN (24)),
-  N (bfd_mach_amdgcn_gfx10_1_generic, "amdgcn:gfx10-1-generic", false, NN (25)),
-  N (bfd_mach_amdgcn_gfx10_3_generic, "amdgcn:gfx10-3-generic", false, NN (26)),
-  N (bfd_mach_amdgcn_gfx11_generic, "amdgcn:gfx11-generic", false, NN (27)),
-  N (bfd_mach_amdgcn_gfx12_generic, "amdgcn:gfx12-generic", false, NN (28)),
+  N (bfd_mach_amdgcn_gfx1103, "amdgcn:gfx1103", false, NN (16)),
+  N (bfd_mach_amdgcn_gfx1150, "amdgcn:gfx1150", false, NN (17)),
+  N (bfd_mach_amdgcn_gfx1151, "amdgcn:gfx1151", false, NN (18)),
+  N (bfd_mach_amdgcn_gfx1152, "amdgcn:gfx1152", false, NN (19)),
+  N (bfd_mach_amdgcn_gfx1153, "amdgcn:gfx1153", false, NN (20)),
+  N (bfd_mach_amdgcn_gfx1200, "amdgcn:gfx1200", false, NN (21)),
+  N (bfd_mach_amdgcn_gfx1201, "amdgcn:gfx1201", false, NN (22)),
+  N (bfd_mach_amdgcn_gfx1250, "amdgcn:gfx1250", false, NN (23)),
+  N (bfd_mach_amdgcn_gfx9_generic, "amdgcn:gfx9-generic", false, NN (24)),
+  N (bfd_mach_amdgcn_gfx9_4_generic, "amdgcn:gfx9-4-generic", false, NN (25)),
+  N (bfd_mach_amdgcn_gfx10_1_generic, "amdgcn:gfx10-1-generic", false, NN (26)),
+  N (bfd_mach_amdgcn_gfx10_3_generic, "amdgcn:gfx10-3-generic", false, NN (27)),
+  N (bfd_mach_amdgcn_gfx11_generic, "amdgcn:gfx11-generic", false, NN (28)),
+  N (bfd_mach_amdgcn_gfx12_generic, "amdgcn:gfx12-generic", false, NN (29)),
   N (bfd_mach_amdgcn_gfx12_5_generic, "amdgcn:gfx12-5-generic", false, NULL),
 };
 
diff --git a/binutils/readelf.c b/binutils/readelf.c
index c7076d22e5c..b5865d9717e 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -5303,6 +5303,7 @@ decode_AMDGPU_machine_flags (char *out, unsigned int e_flags, Filedata *filedata
     AMDGPU_CASE (EF_AMDGPU_MACH_AMDGCN_GFX1100, "gfx1100")
     AMDGPU_CASE (EF_AMDGPU_MACH_AMDGCN_GFX1101, "gfx1101")
     AMDGPU_CASE (EF_AMDGPU_MACH_AMDGCN_GFX1102, "gfx1102")
+    AMDGPU_CASE (EF_AMDGPU_MACH_AMDGCN_GFX1103, "gfx1103")
     AMDGPU_CASE (EF_AMDGPU_MACH_AMDGCN_GFX1150, "gfx1150")
     AMDGPU_CASE (EF_AMDGPU_MACH_AMDGCN_GFX1151, "gfx1151")
     AMDGPU_CASE (EF_AMDGPU_MACH_AMDGCN_GFX1152, "gfx1152")
diff --git a/include/elf/amdgpu.h b/include/elf/amdgpu.h
index 60f11697364..d43a61bf9d5 100644
--- a/include/elf/amdgpu.h
+++ b/include/elf/amdgpu.h
@@ -77,6 +77,7 @@
 #define EF_AMDGPU_MACH_AMDGCN_GFX1100 0x041
 #define EF_AMDGPU_MACH_AMDGCN_GFX1013 0x042
 #define EF_AMDGPU_MACH_AMDGCN_GFX1150 0x043
+#define EF_AMDGPU_MACH_AMDGCN_GFX1103 0x044
 #define EF_AMDGPU_MACH_AMDGCN_GFX1036 0x045
 #define EF_AMDGPU_MACH_AMDGCN_GFX1101 0x046
 #define EF_AMDGPU_MACH_AMDGCN_GFX1102 0x047
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.