From 51e62e56f7edaab7dddfe48fb709b6d8ca952909 Mon Sep 17 00:00:00 2001 From: Tony Tye Date: Mon, 19 Jul 2021 02:21:11 +0000 Subject: [PATCH] [AMDGPU] Reserve AMDGPU ELF e_flags machine 0x45 Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D106249 --- llvm/docs/AMDGPUUsage.rst | 1 + llvm/include/llvm/BinaryFormat/ELF.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/docs/AMDGPUUsage.rst b/llvm/docs/AMDGPUUsage.rst index 0a25fda..a1dc554 100644 --- a/llvm/docs/AMDGPUUsage.rst +++ b/llvm/docs/AMDGPUUsage.rst @@ -1165,6 +1165,7 @@ The AMDGPU backend uses the following ELF header: ``EF_AMDGPU_MACH_AMDGCN_GFX1013`` 0x042 ``gfx1013`` *reserved* 0x043 Reserved. *reserved* 0x044 Reserved. + *reserved* 0x045 Reserved. ==================================== ========== ============================= Sections diff --git a/llvm/include/llvm/BinaryFormat/ELF.h b/llvm/include/llvm/BinaryFormat/ELF.h index d8961aa..0dd5b92 100644 --- a/llvm/include/llvm/BinaryFormat/ELF.h +++ b/llvm/include/llvm/BinaryFormat/ELF.h @@ -747,10 +747,11 @@ enum : unsigned { EF_AMDGPU_MACH_AMDGCN_GFX1013 = 0x042, EF_AMDGPU_MACH_AMDGCN_RESERVED_0X43 = 0x043, EF_AMDGPU_MACH_AMDGCN_RESERVED_0X44 = 0x044, + EF_AMDGPU_MACH_AMDGCN_RESERVED_0X45 = 0x045, // First/last AMDGCN-based processors. EF_AMDGPU_MACH_AMDGCN_FIRST = EF_AMDGPU_MACH_AMDGCN_GFX600, - EF_AMDGPU_MACH_AMDGCN_LAST = EF_AMDGPU_MACH_AMDGCN_RESERVED_0X44, + EF_AMDGPU_MACH_AMDGCN_LAST = EF_AMDGPU_MACH_AMDGCN_RESERVED_0X45, // Indicates if the "xnack" target feature is enabled for all code contained // in the object. -- 2.7.4