binutils Newspaper
JUNE 15, 2026
readelf Proposed

readelf: Add support for AMDGPU code object V6

readelf now decodes the EF_AMDGPU_GENERIC_VERSION_V flag for AMDGPU code object V6.

This patch updates readelf to support AMDGPU code object V6, which introduces the EF_AMDGPU_GENERIC_VERSION_V flag. The patch decodes this flag and displays the generic code object version when examining AMDGPU ELF files. This allows developers to inspect binaries compiled for AMD’s GPUs, ensuring compatibility with the latest architecture features.

In the Thread 1 participant
  1. Simon Marchi <simon.marchi@efficios.com> proposer

    Proposes a patch to add support for AMDGPU code object V6 in readelf, including decoding the EF_AMDGPU_GENERIC_VERSION_V field.

    “AMDGPU code object V6 adds the EF_AMDGPU_GENERIC_VERSION_V field. Decode it when decoding the e_flags value for amdgpu.”

In Details

readelf parses ELF headers and section data. AMDGPU code objects are ELF files with GPU-specific metadata. The ELF header's e_flags field contains architecture-specific flags; this patch decodes the EF_AMDGPU_GENERIC_VERSION_V flag introduced in AMDGPU code object V6.

For Context

readelf is a command-line utility that displays information about ELF (Executable and Linkable Format) files, a common format for executables, object code, shared libraries, and core dumps on Linux and other Unix-like systems. AMDGPU code objects are ELF files containing code and data for AMD GPUs. This patch extends readelf to recognize and display information about a new version of AMDGPU code objects, allowing developers to inspect the properties of GPU binaries.

Part of a Series

Filed Under: readelfAMDGPUELFGPUcode object