Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 3af67a3

Browse files
committed
Resolve macro conflict in opencl build
Change-Id: I752dff96652a55e4fbf719e84ee7d3ec49f5f20a
1 parent d98db4b commit 3af67a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elf/elfio/elf_types.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ typedef uint64_t Elf64_Off;
378378

379379
// AMDGPU specific e_flags
380380
#define EF_AMDGPU_MACH 0x0ff // AMDGPU processor selection mask.
381-
#define EF_AMDGPU_XNACK 0x100 // Indicates if the XNACK target feature is
381+
//#define EF_AMDGPU_XNACK 0x100 // Indicates if the XNACK target feature is
382382
// enabled for all code contained in the ELF.
383383
// AMDGPU processors
384384
#define EF_AMDGPU_MACH_NONE 0x000 // Unspecified processor.
@@ -506,7 +506,7 @@ typedef uint64_t Elf64_Off;
506506
#define STT_COMMON 5
507507
#define STT_TLS 6
508508
#define STT_LOOS 10
509-
#define STT_AMDGPU_HSA_KERNEL 10
509+
#define STT_AMDGPU_HSA_KERNEL (STT_LOOS + 0)
510510
#define STT_HIOS 12
511511
#define STT_LOPROC 13
512512
#define STT_HIPROC 15

0 commit comments

Comments
 (0)