diff options
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 00b5e54..91515bd 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -19724,6 +19724,22 @@ decode_x86_compat_2_isa (unsigned int bitmask) } } +static const char * +get_amdgpu_elf_note_type (unsigned int e_type) +{ + switch (e_type) + { + case NT_AMDGPU_METADATA: + return _("NT_AMDGPU_METADATA (code object metadata)"); + default: + { + static char buf[64]; + snprintf (buf, sizeof (buf), _("Unknown note type: (0x%08x)"), e_type); + return buf; + } + } +} + static void decode_x86_isa (unsigned int bitmask) { @@ -21313,6 +21329,10 @@ process_note (Elf_Internal_Note * pnote, /* GNU-specific object file notes. */ nt = get_gnu_elf_note_type (pnote->type); + else if (startswith (pnote->namedata, "AMDGPU")) + /* AMDGPU-specific object file notes. */ + nt = get_amdgpu_elf_note_type (pnote->type); + else if (startswith (pnote->namedata, "FreeBSD")) /* FreeBSD-specific core file notes. */ nt = get_freebsd_elfcore_note_type (filedata, pnote->type); |