Add AMDGPU generic targets
Adds support for AMDGPU generic architectures (gfx9-generic, gfx9-4-generic, gfx10-1-generic, gfx10-3-generic, gfx11-generic, gfx12-generic, gfx12-5-generic) t…
This commit introduces support for several new generic AMDGPU architectures, including gfx9-generic, gfx9-4-generic, gfx10-1-generic, gfx10-3-generic, gfx11-generic, gfx12-generic, and gfx12-5-generic. By adding these targets, the build system can now recognize and handle binaries compiled for these architectures, enabling tools like objdump and readelf to process them correctly.
In Details
This commit adds new AMDGPU generic architectures to the BFD library. The affected files are bfd/archures.c, bfd/bfd-in2.h, bfd/cpu-amdgcn.c, binutils/readelf.c, and include/elf/amdgpu.h. This change allows BFD to identify and process binaries targeting these generic AMDGPU architectures. It primarily impacts developers working on tools that rely on BFD for binary analysis and manipulation.
For Context
BFD (Binary File Descriptor) is a library that provides a generic interface for working with different object file formats. This commit extends BFD's support for AMDGPU (AMD's GPU architecture) by adding definitions for several new "generic" GPU architectures. This means that tools using BFD, such as objdump and readelf, will now be able to recognize and process binaries compiled for these AMDGPU targets. This is important for developers who work with GPU binaries and need to analyze or manipulate them.