binutils/readelf: handle NT_AMDGPU_METADATA note name
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 16 Mar 2022 13:01:26 +0000 (09:01 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 16 Mar 2022 13:01:26 +0000 (09:01 -0400)
commit28cdbb183bf80157a71d222b66abc38f32019f2d
treeb96e267b0875f82cf64b3dc05f65861dd9e2bc37
parentc077c5802c396e4548516f15c8f03d7684b236ef
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
binutils/ChangeLog
binutils/readelf.c
include/ChangeLog
include/elf/amdgpu.h