binutils Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
readelf

Readelf: Add support for AMDGPU code object V6

`readelf` now decodes the EF_AMDGPU_GENERIC_VERSION_V flag in AMDGPU code object V6 ELF headers, displaying the generic code object version.

The AMDGPU code object V6 adds the EF_AMDGPU_GENERIC_VERSION_V flag to the ELF header. This commit updates readelf to decode and display this flag when examining AMDGPU ELF files. The output will indicate the “generic code object” version, improving the tool’s ability to provide detailed information about AMDGPU binaries.

In Details

AMDGPU code object V6 introduces the EF_AMDGPU_GENERIC_VERSION_V flag. This patch modifies readelf.c to decode this flag and display the generic code object version. The change is relevant for developers working with AMDGPU binaries and needing to understand the specific features and versions used in the code object. It requires awareness of the AMDGPU ELF header structure and the meaning of the new flag.

For Context

readelf is a command-line utility that displays information about ELF (Executable and Linkable Format) files, a common format for object code, executables, and shared libraries on Unix-like systems. AMDGPU, AMD's GPU architecture, uses a specific flavor of ELF called a "code object". This commit updates readelf to understand the newest AMDGPU code object version (V6), which involves decoding and displaying a new flag (EF_AMDGPU_GENERIC_VERSION_V) that indicates the version of the generic code object. This allows developers to inspect AMDGPU binaries and determine which features and versions are being used.

Filed Under: readelfamdgpuelf