From 7b3b9c00af918d18d0ed3f0137b1605f9fa4082d Mon Sep 17 00:00:00 2001 From: Tony Tye Date: Thu, 24 Jun 2021 02:01:24 +0000 Subject: [PATCH] [AMDGPU] Reserve AMDGPU ELF e_flags machine 0x43 Reviewed By: kzhuravl, rampitec Differential Revision: https://reviews.llvm.org/D104872 --- docs/AMDGPUUsage.rst | 1 + include/llvm/BinaryFormat/ELF.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/AMDGPUUsage.rst b/docs/AMDGPUUsage.rst index 8d6d86a35e9..d414b06edb1 100644 --- a/docs/AMDGPUUsage.rst +++ b/docs/AMDGPUUsage.rst @@ -1163,6 +1163,7 @@ The AMDGPU backend uses the following ELF header: *reserved* 0x040 Reserved. *reserved* 0x041 Reserved. ``EF_AMDGPU_MACH_AMDGCN_GFX1013`` 0x042 ``gfx1013`` + *reserved* 0x043 Reserved. ==================================== ========== ============================= Sections diff --git a/include/llvm/BinaryFormat/ELF.h b/include/llvm/BinaryFormat/ELF.h index bd784b97396..b8135ffcd7a 100644 --- a/include/llvm/BinaryFormat/ELF.h +++ b/include/llvm/BinaryFormat/ELF.h @@ -743,10 +743,11 @@ enum : unsigned { EF_AMDGPU_MACH_AMDGCN_RESERVED_0X40 = 0x040, EF_AMDGPU_MACH_AMDGCN_RESERVED_0X41 = 0x041, EF_AMDGPU_MACH_AMDGCN_GFX1013 = 0x042, + EF_AMDGPU_MACH_AMDGCN_RESERVED_0X43 = 0x043, // First/last AMDGCN-based processors. EF_AMDGPU_MACH_AMDGCN_FIRST = EF_AMDGPU_MACH_AMDGCN_GFX600, - EF_AMDGPU_MACH_AMDGCN_LAST = EF_AMDGPU_MACH_AMDGCN_GFX1013, + EF_AMDGPU_MACH_AMDGCN_LAST = EF_AMDGPU_MACH_AMDGCN_RESERVED_0X43, // Indicates if the "xnack" target feature is enabled for all code contained // in the object.