aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-03-16 09:01:26 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-03-16 09:01:26 -0400
commit28cdbb183bf80157a71d222b66abc38f32019f2d (patch)
treeb96e267b0875f82cf64b3dc05f65861dd9e2bc37 /include
parentc077c5802c396e4548516f15c8f03d7684b236ef (diff)
downloadgdb-28cdbb183bf80157a71d222b66abc38f32019f2d.zip
gdb-28cdbb183bf80157a71d222b66abc38f32019f2d.tar.gz
gdb-28cdbb183bf80157a71d222b66abc38f32019f2d.tar.bz2
binutils/readelf: handle NT_AMDGPU_METADATA note name
Handle the NT_AMDGPU_METADATA note, which is described here: https://llvm.org/docs/AMDGPUUsage.html#code-object-v3-note-records As of this patch, just print out the name, not the contents, which is in the msgpack format. binutils/ChangeLog: * readelf.c (get_amdgpu_elf_note_type): New. (process_note): Handle "AMDGPU" notes. include/ChangeLog: * elf/amdgcn.h (NT_AMDGPU_METADATA): New. Change-Id: Id2dba2e2aeaa55ef7464fb35aee9c7d5f96ddb23
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/elf/amdgpu.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 7807497..64aeb12 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,5 +1,9 @@
2022-03-16 Simon Marchi <simon.marchi@efficios.com>
+ * elf/amdgcn.h (NT_AMDGPU_METADATA): New.
+
+2022-03-16 Simon Marchi <simon.marchi@efficios.com>
+
* elf/amdgcn.h: Add EF_AMDGPU_MACH_AMDGCN_* and
EF_AMDGPU_FEATURE_* defines.
diff --git a/include/elf/amdgpu.h b/include/elf/amdgpu.h
index 005064f..e3c90dc 100644
--- a/include/elf/amdgpu.h
+++ b/include/elf/amdgpu.h
@@ -87,4 +87,8 @@
#define EF_AMDGPU_FEATURE_SRAMECC_OFF_V4 0x800
#define EF_AMDGPU_FEATURE_SRAMECC_ON_V4 0xc00
+/* Notes. */
+
+#define NT_AMDGPU_METADATA 32
+
#endif /* _ELF_AMDGPU_H */